mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-19 09:40:59 +00:00
* EOAccess/EOEntity.m (-[isValidPrimaryKeyAttribute:],
-[isValidAttributeUsedForLocking:], -[isValidClassProperty:]): Test object equality as well as name. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26484 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0867ca8cf4
commit
82d27b5e48
2 changed files with 11 additions and 5 deletions
|
@ -1,9 +1,15 @@
|
|||
2008-05-03 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
* EOAccess/EOEntity.m (-[isValidPrimaryKeyAttribute:],
|
||||
-[isValidAttributeUsedForLocking:],
|
||||
-[isValidClassProperty:]): Test object equality as well as name.
|
||||
|
||||
2008-05-01 David Ayers <ayers@fsfe.org>
|
||||
|
||||
* EOAccess/EODatabaseContext.m
|
||||
([-initializeObject:row:entity:editingContext:]): Remove debug logs.
|
||||
* EOAccess/EOEntity.m ([-_dictionaryForInstanceProperties],
|
||||
[-primaryKeyForGlobalID:]) Remove debug logs.
|
||||
[-primaryKeyForGlobalID:]): Remove debug logs.
|
||||
|
||||
2008-05-01 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
|
|
|
@ -1432,7 +1432,7 @@ static void performSelectorOnArrayWithEachObjectOfClass(NSArray *arr, SEL select
|
|||
- (BOOL)isValidAttributeUsedForLocking: (EOAttribute *)attribute
|
||||
{
|
||||
if (!([attribute isKindOfClass: GDL2_EOAttributeClass]
|
||||
&& [[self attributesByName] objectForKey: [attribute name]]))
|
||||
&& ([self attributeNamed: [attribute name]] == attribute)))
|
||||
return NO;
|
||||
|
||||
if ([attribute isDerived])
|
||||
|
@ -1444,7 +1444,7 @@ static void performSelectorOnArrayWithEachObjectOfClass(NSArray *arr, SEL select
|
|||
- (BOOL)isValidPrimaryKeyAttribute: (EOAttribute *)attribute
|
||||
{
|
||||
if (!([attribute isKindOfClass: GDL2_EOAttributeClass]
|
||||
&& [[self attributesByName] objectForKey: [attribute name]]))
|
||||
&& ([self attributeNamed: [attribute name]] == attribute)))
|
||||
return NO;
|
||||
|
||||
if ([attribute isDerived])
|
||||
|
@ -1496,8 +1496,8 @@ static void performSelectorOnArrayWithEachObjectOfClass(NSArray *arr, SEL select
|
|||
|
||||
thePropertyName = [(EOAttribute *)property name];
|
||||
|
||||
if ([[self attributesByName] objectForKey: thePropertyName]
|
||||
|| [[self relationshipsByName] objectForKey: thePropertyName])
|
||||
if ([[self attributesByName] objectForKey: thePropertyName] == property
|
||||
|| [[self relationshipsByName] objectForKey: thePropertyName] == property)
|
||||
return YES;
|
||||
|
||||
return NO;
|
||||
|
|
Loading…
Reference in a new issue