• 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
CoreData warning: File.children -- to-many relationship does not have an inverse:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData warning: File.children -- to-many relationship does not have an inverse:


  • Subject: CoreData warning: File.children -- to-many relationship does not have an inverse:
  • From: Ignacio Enriquez <email@hidden>
  • Date: Wed, 4 Aug 2010 05:37:09 +0900

Hi,
I am having some trouble modeling my data. I would like to implement
the following:

User can create files and folders (they don't have to be real folders/files).
Folders can contain files or other folders
Files have:
title,
summary and
8 children
Each child also has a title and a summary and could have 8 children (optionally)
This could be as many levels (recursive) as the user desires.
I am not sure how to express this in CoreData. Could someone give a hand here?

This is what I've done: http://yfrog.com/j2o1op

"Child" entity with "title" and "summary" attributes and "children"
(to-many) relationship pointing to "Child" entity
"File" entity with "isDirectory" and "name" attributes and "files"
(to-many)  relationship pointing to "File" entity  and "children"
(to-many) relationship pointing to "Child" entity.

Doing that gets me a warning:
File.children -- to-many relationship does not have an inverse:  this
is an advanced setting (no object can be in multiple destinations for
a specific relationship)
Why is that? I've tried to set the inverse relationship but there are
no options to choose from.

I am not sure if this well implements above structure. I am in the right way?
Thanks in advance.
_______________________________________________

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

  • Follow-Ups:
    • Re: CoreData warning: File.children -- to-many relationship does not have an inverse:
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Need help understanding first responder and multiple nibs
  • Next by Date: Threading and Event Queue Question
  • Previous by thread: Initialize a GKSession from a view running with presentModalViewController:animated:?
  • Next by thread: Re: CoreData warning: File.children -- to-many relationship does not have an inverse:
  • Index(es):
    • Date
    • Thread