You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by to...@apache.org on 2006/10/30 23:27:11 UTC

svn commit: r469300 - /incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m

Author: torehalset
Date: Mon Oct 30 14:27:10 2006
New Revision: 469300

URL: http://svn.apache.org/viewvc?view=rev&rev=469300
Log:
prepareForAccess in custom set/get methods

Modified:
    incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m

Modified: incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m?view=diff&rev=469300&r1=469299&r2=469300
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CAYClient/Artist.m Mon Oct 30 14:27:10 2006
@@ -40,12 +40,14 @@
 -(void)setName:(NSString *)name
 {
     // NSLog(@"DEBUG: used custom method to set name. %@", name);
+    [[self objectContext] prepareForAccess:self forProperty:@"name" withLazyFetching:NO];
     [super setPrimitiveValue:name forKey:@"name"];
 }
 
 -(NSString *)name;
 {
     // NSLog(@"DEBUG: used custom method to get name");
+    [[self objectContext] prepareForAccess:self forProperty:@"name" withLazyFetching:NO];
     return [super primitiveValueForKey:@"name"];
 }