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>
|
||||
|
||||
* EOAccess/EOEntity.m ([EOEntity -initWithPropertyList:owner:]): read
|
||||
<entityName>.fspec only if exists.
|
||||
|
||||
* EOControl/EOKeyValueCoding.m ([NSArray -valueForKeyPath:]):
|
||||
implemented the case of invoking an aggregate function using a simple
|
||||
key.
|
||||
|
|
|
@ -277,14 +277,16 @@ NSString *EONextPrimaryKeyProcedureOperation = @"EONextPrimaryKeyProcedureOperat
|
|||
|
||||
// load entity's FetchSpecifications
|
||||
{
|
||||
NSDictionary *plist;
|
||||
NSDictionary *plist = nil;
|
||||
NSString *fileName;
|
||||
|
||||
fileName = [NSString stringWithFormat: @"%@.fspec", _name];
|
||||
plist = [[NSString stringWithContentsOfFile:
|
||||
[[(EOModel *)owner path]
|
||||
stringByAppendingPathComponent: fileName]]
|
||||
propertyList];
|
||||
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath: fileName])
|
||||
plist = [[NSString stringWithContentsOfFile:
|
||||
[[(EOModel *)owner path]
|
||||
stringByAppendingPathComponent: fileName]]
|
||||
propertyList];
|
||||
|
||||
if (plist)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue