Skip navigation.
 
mlRe: Core Data Relationships
FROM : Chris Hanson
DATE : Sat Apr 07 18:43:25 2007

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

Related mailsAuthorDate
mlCore Data Relationships Matt D Apr 5, 11:33
mlRe: Core Data Relationships mmalc crawford Apr 5, 12:28
mlRe: Core Data Relationships Julio Cesar Silva… Apr 5, 13:22
mlRe: Core Data Relationships Matt D Apr 6, 14:14
mlRe: Core Data Relationships mmalc crawford Apr 6, 17:14
mlRe: Core Data Relationships Matt D Apr 6, 22:11
mlRe: Core Data Relationships Matt D Apr 7, 11:10
mlRe: Core Data Relationships Chris Hanson Apr 7, 18:43