Custom Entity Migration Policy
Custom Entity Migration Policy
- Subject: Custom Entity Migration Policy
- From: Andrew Kimpton <email@hidden>
- Date: Sun, 2 Dec 2007 17:15:09 -0500
I've specified a custom NSEntityMigrationPolicy subclass to migration
one of my entities.
When createRelationshipsForDestinationInstance... is called I retrieve
the array of relationship expressions I created in the mapping model
using Xcode.
I'd like to simple execute all but one of these expressions - I only
need to customize the relationship mapping for one of the
relationships, the others are adequately handled using the details
from the mapping model.
I've tried a number of different ways to evalute the expression - but
all seem to give an error :
Can't get value for 'manager' in bindings {
}
in the debugger console when I call :
[migrationExpression expressionValueWithObject:self context:context];
I've tried a variety of different objects to evaluate the expression
against and I can't seem to get past the error message. I've tried
using the manager argument, the dInstance argument and a dictionary
(with a "manager" key set to the manager argument). All give the same
message.
The documentation is pretty non-existent as to how a subclass of
NSEnityMigrationPolicy should use some of it's arguments (like the
NSEntityMapping * argument).
Has anyone else tried this ? I couldn't find anything about
subclassing the migration policy when I searched the list archives.
Thanks
Andrew 8-)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden