• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core data subentities bug ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: renaming a file with special/reserved characters in name
  • Next by Date: Re: gui development without using xcode or interface builder
  • Previous by thread: Fwd: Core data subentities bug ?
  • Next by thread: The fieldEditor and a focus ring
  • Index(es):
    • Date
    • Thread