Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6942941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:05:28+00:00 2026-05-27T13:05:28+00:00

My app uses a UIManagedDocument to handle its data with Core Data. There’s a

  • 0

My app uses a UIManagedDocument to handle its data with Core Data. There’s a to-many relationship between 2 entities: Post and Tag.

When I want to edit a post, I create a temporary NSManagedObjectContext, set its parentContext to the UIManagedDocument’s managedObjectContext, and retrieve the post using the objectWithID: method.

Let’s assume this:

  • MOC1 is the UIManagedDocument’s NSManagedObjectContext
  • MOC2 is the temporary NSManagedObjectContext to edit the post
  • post1 is the post in MOC1
  • post2 is the post in MOC2

Here’s the problem:

  • post1.tags returns 2 tags
  • post2.tags returns 0 tags

All of post2 properties are properly retrieved, except for the to-many relationship tags.

Why does post2.tags have no tag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:05:29+00:00Added an answer on May 27, 2026 at 1:05 pm

    I wish I had an answer for this, but so far as I’ve been able to determine, it’s a bug. To-many relationship retrieval just doesn’t seem work at all in this scenario.

    Frankly, it seems a bit hard to believe this would have escaped testing, but I’ve been completely unable to make this work in any way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: Our web app uses the jquery.constrain.js plugin to handle data entry in some
My Rails app uses the jquery.post() method to send some data from a clickable
My App uses one service in the background. To share data between the UI
My app uses an sqlite database managed with core-data. These are the errors I
My App Uses Coredata and Displays Data in a table, one column has a
My winform app uses xml files to store data, where should I store them
I am working on an iPhone app that uses a subclass of UIManagedDocument and
My app uses two databases (separate files). To handle these databases I have created
My app uses a TreeMap to keep data sorted and have log(n) lookups &
My app uses XML to save user data to a file. I have just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.