Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core data - one relationship is not saved



Using sqllite to save my entities - very standard stuff.  However, one
relationship in my model does not appear to save using sql (it works using
xml).

I have four entities:

(names changed to protect the.. )

stan
kyle
eric
kenny

kenny is a parent class to eric and kyle

stan has three to-many relationships, one to each of kyle, eric, kenny

The kenny relationship holds all entities of type kyle and eric.  The eric
and kyle relationships hold only their respective entity types.

Simply put, there is one instance of stan that holds lists of entities of
type kyle and stan, and also holds a single list of all entities (kyle and
stan).

The model appears to work fine.  Data is imported into the persistent store
from an external source.  The data looks fine after importing, and all
relationships appear to work.

However, after quitting the app and relaunching, all data looks fine except
the relationship where the parent class (kenny) keeps the list of all kyle
and eric entities - this list is empty.

At first, I had used an abstract class for kenny.  I tested using XML store
instead of sql at first, and everything worked fine.

After switching to sql, I had the problem.

Any ideas??

Paul Nelson


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.