Core data subentities bug ?
Core data subentities bug ?
- Subject: Core data subentities bug ?
- From: Pierre Chatelier <email@hidden>
- Date: Fri, 27 Feb 2009 09:58:40 +0100
Hello,
Before reporting that as a bug to Apple, I want to be sure that I did
not do anything wrong.
I have the following data model :
An entity "Wrapper", which is a superentity of "SubWrapper".
The "Wrapper" has a bidirectional relationship to another entity
"Item". Period.
When I check the data model, I observe something strange : Wrapper
recognizes SubWrapper as a subentity, while SubEntity does *not*
recognize Wrapper as its superentity.
Here is a (filtered) output :
Wrapper entity : (<NSEntityDescription: 0x161290>) name Wrapper,
managedObjectClassName Wrapper, isAbstract 1, superentity name (null),
}, subentities {SubWrapper = (<NSEntityDescription: 0x1612f0>) name
SubWrapper, managedObjectClassName SubWrapper, isAbstract 0,
superentity name Wrapper}}
SubWrapper entity : (<NSEntityDescription: 0x160690>) name
SubWrapper, managedObjectClassName SubWrapper, isAbstract 0,
superentity name (null))
Wrapper subentities : (
(<NSEntityDescription: 0x1612f0>) name SubWrapper,
managedObjectClassName SubWrapper, isAbstract 0, superentity name
Wrapper)
SubWrapper superentity : (null)
Wrapper subentities names : ( SubWrapper)
Is subWrapper a subentity of Wrapper : 1
Is Wrapper the superentity of SubWrapper : 0
What could I have done wrong ?
Here is the minimal project that I use :
Attachment:
BugCoreData.zip
Description: Zip archive
http://ktd.club.fr/programmation/fichiers/BugCoreData.zip
Regards,
Pierre Chatelier
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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