• 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
Multiple One-to-One Core Data relationships & inverse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple One-to-One Core Data relationships & inverse


  • Subject: Multiple One-to-One Core Data relationships & inverse
  • From: Frank Reiff <email@hidden>
  • Date: Fri, 7 Sep 2007 14:36:57 +0200

Hi,

This is probably a stupid newbie question again, but I can't get my head around this..

The Core Data documentation makes a big deal about the fact that each relationship should have an inverse & the compiler now even throws a warning when there isn't an inverse.

What I don't get is this how this is supposed to work with multiple role based one-to-one relationships ("has a").

Say you have a money transfer entity that takes a debit and a credit account.

You'll have:

MoneyTransfer:
creditedAccount one-to-one relationship to Account
debitedAccount one-to-one relationship to Account

Now Account should have an inverse relationship for this!?

The inverse could either go to creditedAccount or debited account, but not both..!?

What am I missing?

Best regards,

Frank
_______________________________________________

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: Multiple One-to-One Core Data relationships & inverse
      • From: Frédéric Testuz <email@hidden>
  • Prev by Date: Changing button size programmatically
  • Next by Date: Re: RS: NSObject members class and isMemberOfClass
  • Previous by thread: Re: Changing button size programmatically
  • Next by thread: Re: Multiple One-to-One Core Data relationships & inverse
  • Index(es):
    • Date
    • Thread