* EOAccess/EOAttribute.m (-setDefinition:): Clear _columnName before

calling _setIsEdited on the parent.  Document.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26597 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2008-06-06 09:26:14 +00:00
parent 35ea180bdc
commit 5c84e40422
2 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2008-06-06 David Ayers <ayers@fsfe.org>
* EOAccess/EOAttribute.m (-setDefinition:): Clear _columnName before
calling _setIsEdited on the parent. Document.
* EOAccess/EORelationship.h/m (-setInverseRelationship:): Rename to...
(-_setInverseRelationship:): ... and move to local privat method.

View file

@ -863,14 +863,24 @@ return nexexp
return definition;
}
/**
* <p>Sets the definition of a derived attribute.</p>
* <p>An EOAttribute can either reference column from the entites
* external representation or define a derived attribute such a
* cacluclated value or a key path. The values to these attributes
* are cached in memory.<p>
* <p>To set the definition of an attribute, the attribute must
* already be contained by its parent entity.</p>
* <p>Setting the the definition clears the column name.</p>
*/
- (void)setDefinition:(NSString *)definition
{
if(definition)
{
[self willChange];
[self _setDefinitionWithoutFlushingCaches: definition];
DESTROY(_columnName);
[_parent _setIsEdited];
DESTROY(_columnName);//??
}
}