mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-22 12:55:44 +00:00
* 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:
parent
87137f176c
commit
8dc26d8c63
3 changed files with 32 additions and 9 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue