Re: Core Data Relationships
Re: Core Data Relationships
- Subject: Re: Core Data Relationships
- From: Chris Hanson <email@hidden>
- Date: Sat, 7 Apr 2007 09:43:25 -0700
On Apr 7, 2007, at 2:10 AM, Matt D wrote:
Darn, I was hoping it would automatically enforce relationships set
in the modeler.. Oh well ... Thank you for your replies, I
appreciate your help very much.
Let's be clear: Core Data does automatically enforce relationships,
along with the rest of the schema specified by a data model. For
example, if you try to violate a relationship's cardinality by adding
more or fewer objects to it than it allows, Core Data will return a
validation error when you attempt to save.
What Core Data doesn't do is automatically create your object graph
for you. This is because only you know what you actually intend your
object graph to represent and how you intend to use it. It's similar
to the SQL data definition language or XMLSchema in that sense; just
describing tables and constraints or describing elements and
attributes doesn't automatically get you data that conforms to what
you've described.
Map vs. territory.
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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