Re: Vertical inheritance bug
Re: Vertical inheritance bug
- Subject: Re: Vertical inheritance bug
- From: Alexis Tual <email@hidden>
- Date: Thu, 30 May 2013 16:31:31 +0200
Ok despite my eyes bleeding and my brain melting, I continued to dig and found that at some point that EORelationship#anyInverseRelationship is called to order the changes. This can't find an inverse relationship and creates one in memory then calls EOEntity#setEdited, setting _attributesToSave to null...
The relationship is between an entity from another model "RepartUefEtablissement" and the subentity "Ue", a quick workaround consists in calling anyInverseRelationship before the saveChanges() :
EOEntity entity = EOUtilities.entityForClass(ec, EORepartUefEtablissement.class);
EORelationship relationship = entity.relationshipNamed(EORepartUefEtablissement.COMPOSANT_UE.key());
relationship.anyInverseRelationship();
Hope it will help someone else
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden