* EOAccess/EOStoredProcedure.m

setName: added loadAllModelObjects and checks
setExternalName: add checks
* EOAccess/EORelationship.m
encodeIntoPropertyList:
added code for ownsDestination and propagatesPrimaryKey from Sergey Golovin.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30430 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Dave Wetzel 2010-05-19 17:00:10 +00:00
parent b6d3915786
commit 6b69c88f62
3 changed files with 32 additions and 9 deletions

View file

@ -1,3 +1,11 @@
2010-05-19 David Wetzel <dave@turbocat.de>
* EOAccess/EOStoredProcedure.m
setName: added loadAllModelObjects and checks
setExternalName: add checks
* EOAccess/EORelationship.m
encodeIntoPropertyList:
added code for ownsDestination and propagatesPrimaryKey from Sergey Golovin.
2010-05-16 David Wetzel <dave@turbocat.de>
* EOAccess/EOModel.m:
entities: make sure we use a mutable array. Destroy _entities cache when adding a new one.

View file

@ -461,18 +461,22 @@ RCS_ID("$Id$")
}
if ([self isMandatory])
{
[propertyList setObject: @"Y"
forKey: @"isMandatory"];
forKey: @"isMandatory"];
}
if ([self ownsDestination])
{
NSEmitTODO(); //TODO
}
{
[propertyList setObject: @"Y"
forKey: @"ownsDestination"];
}
if ([self propagatesPrimaryKey])
{
NSEmitTODO(); //TODO
}
{
[propertyList setObject: @"Y"
forKey: @"propagatesPrimaryKey"];
}
{
int joinsCount = [_joins count];

View file

@ -207,14 +207,25 @@ RCS_ID("$Id$")
- (void)setName: (NSString *)name
{
if ((_name == name)) {
return;
}
if (_model != nil)
{
[_model loadAllModelObjects];
}
[self willChange];
ASSIGNCOPY(_name, name);
}
- (void)setExternalName: (NSString *)name
{
[self willChange];
ASSIGNCOPY(_externalName, name);
if (_externalName != name) {
[self willChange];
ASSIGNCOPY(_externalName, ([name length] > 0) ? name : nil);
}
}
- (void)setArguments: (NSArray *)arguments