Re: Will calling entity.name cause a fault to fire?
Re: Will calling entity.name cause a fault to fire?
- Subject: Re: Will calling entity.name cause a fault to fire?
- From: Miguel Sanchez <email@hidden>
- Date: Mon, 16 Jan 2006 14:27:37 -0800
no, the fault won't be fired. You're getting back the MO's entity,
which is a runtime structure in the model, not data in your DB.
- Miguel
On Jan 11, 2006, at 1:30 PM, email@hidden wrote:
I'm working on changing my model to use more abstracted
relationships, and want to get a collection based on the entity
type, but using a fetched relationship, I will be dealing with a
lot of objects so I want to prevent faulting to be fired, so
checking the entity name seems the sensible route.
I know calling [NSManagedObject entity] will not fire a fault, but
I just would like to confirm if making a fetched relationship in
Xcode Modeler UI setting the predicate to entity.name == "myEntity"
would not cause a fault to be fired.
Thanks for any help.
Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden