mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-25 05:40:55 +00:00
* EOAccess/EOEntity.m ([EOEntity -initWithPropertyList:owner:]): read
<entityName>.fspec only if exists. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@15243 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be52a0e7e7
commit
c3416d5bb6
2 changed files with 11 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
||||||
2002-12-04 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
2002-12-04 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||||
|
|
||||||
|
* EOAccess/EOEntity.m ([EOEntity -initWithPropertyList:owner:]): read
|
||||||
|
<entityName>.fspec only if exists.
|
||||||
|
|
||||||
* EOControl/EOKeyValueCoding.m ([NSArray -valueForKeyPath:]):
|
* EOControl/EOKeyValueCoding.m ([NSArray -valueForKeyPath:]):
|
||||||
implemented the case of invoking an aggregate function using a simple
|
implemented the case of invoking an aggregate function using a simple
|
||||||
key.
|
key.
|
||||||
|
|
|
@ -277,15 +277,17 @@ NSString *EONextPrimaryKeyProcedureOperation = @"EONextPrimaryKeyProcedureOperat
|
||||||
|
|
||||||
// load entity's FetchSpecifications
|
// load entity's FetchSpecifications
|
||||||
{
|
{
|
||||||
NSDictionary *plist;
|
NSDictionary *plist = nil;
|
||||||
NSString *fileName;
|
NSString *fileName;
|
||||||
|
|
||||||
fileName = [NSString stringWithFormat: @"%@.fspec", _name];
|
fileName = [NSString stringWithFormat: @"%@.fspec", _name];
|
||||||
plist = [[NSString stringWithContentsOfFile:
|
|
||||||
[[(EOModel *)owner path]
|
if ([[NSFileManager defaultManager] fileExistsAtPath: fileName])
|
||||||
stringByAppendingPathComponent: fileName]]
|
plist = [[NSString stringWithContentsOfFile:
|
||||||
propertyList];
|
[[(EOModel *)owner path]
|
||||||
|
stringByAppendingPathComponent: fileName]]
|
||||||
|
propertyList];
|
||||||
|
|
||||||
if (plist)
|
if (plist)
|
||||||
{
|
{
|
||||||
EOKeyValueUnarchiver *unarchiver;
|
EOKeyValueUnarchiver *unarchiver;
|
||||||
|
|
Loading…
Reference in a new issue