mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-22 02:41:05 +00:00
* EOAdaptors/Postgres95/Postgres95Channel.m
([Postgres95Channel describeModelWithTableNames:]): Set class properties. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@19337 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
145fb1dfac
commit
72e8d1c7b3
2 changed files with 22 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-05-15 Matt Rice <ratmice@yahoo.com>
|
||||
|
||||
* EOAdaptors/Postgres95/Postgres95Channel.m
|
||||
([Postgres95Channel describeModelWithTableNames:]):
|
||||
Set class properties.
|
||||
|
||||
2004-05-15 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* EOAccess/EOAttribute.m
|
||||
|
|
|
@ -1732,7 +1732,8 @@ each key
|
|||
{
|
||||
EOModel *model;
|
||||
EOAdaptor *adaptor;
|
||||
NSArray *entityNames;
|
||||
EOEntity *entity;
|
||||
NSArray *entityNames;
|
||||
unsigned int i;
|
||||
|
||||
adaptor = [[self adaptorContext] adaptor];
|
||||
|
@ -1766,7 +1767,6 @@ each key
|
|||
{
|
||||
NSAutoreleasePool *pool = [NSAutoreleasePool new];
|
||||
NSString *entityName;
|
||||
EOEntity *entity;
|
||||
|
||||
NS_DURING
|
||||
entityName = [entityNames objectAtIndex:i];
|
||||
|
@ -1782,6 +1782,20 @@ each key
|
|||
|
||||
[pool release];
|
||||
}
|
||||
|
||||
for (i=0; i < [entityNames count]; i++)
|
||||
{
|
||||
NSAutoreleasePool *pool = [NSAutoreleasePool new];
|
||||
NSMutableArray *classProperties;
|
||||
|
||||
entity = [model entityNamed:[entityNames objectAtIndex:i]];
|
||||
classProperties = [NSMutableArray arrayWithArray:[entity attributes]];
|
||||
[classProperties removeObjectsInArray: [entity primaryKeyAttributes]];
|
||||
[entity setClassProperties: classProperties];
|
||||
|
||||
[pool release];
|
||||
}
|
||||
|
||||
[model beautifyNames];
|
||||
return model;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue