mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-21 02:20:55 +00:00
* EOAccess/EOEntity.m ([EOEntityClassDescription
-inverseForRelationshipKey:]): Fixed to return a relationship name that is a class property. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@15308 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0d78e7210c
commit
66cc30154c
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-12-17 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* EOAccess/EOEntity.m ([EOEntityClassDescription
|
||||
-inverseForRelationshipKey:]): Fixed to return a relationship name that
|
||||
is a class property.
|
||||
|
||||
2002-12-14 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* EOAccess/EORelationship.m ([EORelationship
|
||||
|
|
|
@ -4306,7 +4306,7 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext
|
|||
//Near OK
|
||||
NSString *inverseName = nil;
|
||||
EORelationship *relationship = [_entity relationshipNamed: relationshipKey];
|
||||
NSArray *classProperties = [_entity classProperties];
|
||||
NSArray *classPropertieNames = [_entity classPropertyNames];
|
||||
EOEntity *parentEntity = [_entity parentEntity];
|
||||
//TODO what if parentEntity
|
||||
EORelationship *inverseRelationship = [relationship inverseRelationship];
|
||||
|
@ -4319,6 +4319,9 @@ fromInsertionInEditingContext: (EOEditingContext *)anEditingContext
|
|||
[inverseRelationshipEntity classProperties];*/
|
||||
|
||||
inverseName = [inverseRelationship name];
|
||||
|
||||
if (![classPropertieNames containsObject: inverseName])
|
||||
inverseName = nil;
|
||||
}
|
||||
|
||||
return inverseName;
|
||||
|
|
Loading…
Reference in a new issue