• 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 migration and non-optional transient relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data migration and non-optional transient relationships


  • Subject: Core Data migration and non-optional transient relationships
  • From: Sean McBride <email@hidden>
  • Date: Tue, 20 May 2014 10:21:02 -0400
  • Organization: Rogue Research Inc.

Hi all,

Doing a Core Data migration (not the lightweight kind) I hit an error at the end:

"foo is a required value."

the 'foo' relationship it complains about is transient and so not present in the store.  Normally, I recreate the relationship in awakeFromFetch, but it doesn't seem to call that during migration.  As a test I made the relationship optional, then it no longer complains.

This seems to mean that transient relationships must always be optional?!  At least if you ever want to migrate.  That seems odd.  Am I missing something here?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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: Core Data migration and non-optional transient relationships
      • From: Jerry Krinock <email@hidden>
    • Re: Core Data migration and non-optional transient relationships
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: kCGStatusWindowLevel
  • Next by Date: Re: kCGStatusWindowLevel
  • Previous by thread: Re: kCGStatusWindowLevel
  • Next by thread: Re: Core Data migration and non-optional transient relationships
  • Index(es):
    • Date
    • Thread