Core data - one relationship is not saved
Core data - one relationship is not saved
- Subject: Core data - one relationship is not saved
- From: Paul Nelson <email@hidden>
- Date: Fri, 29 Jul 2005 11:09:54 -0500
- Thread-topic: 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:
This email sent to email@hidden