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 9001215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:24:24+00:00 2026-06-16T00:24:24+00:00

I have three entities: Entity A —– m:n —— Entity B —— m:1 ——

  • 0

I have three entities:

Entity A —– m:n —— Entity B —— m:1 —— Entity C

To get the set of B’s belonging to an A, I can use a.b. Since every B has only one C, I’d like to do something to Entity A to be able to say a.c to get the set of C’s. After reading the Apple docs for fetched properties (http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/CoreData/Articles/cdRelationships.html), and thumbing through some fetched property questions here, this doesn’t seem to be the right approach.

Can I use fetched properties to do this? Is there another way?

  • 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-06-16T00:24:25+00:00Added an answer on June 16, 2026 at 12:24 am

    You can use [a valueForKeyPath:@"b.c"]. This will hand back the value of b.c for every b in a.b.

    More accurately, when an NSArray receives a -valueForKey: call, it constructs a new array containing the results of forwarding that -valueForKey: on to every element in the array. This behavior carries over to -valueForKeyPath: as well. So since the keypath b is an array, the keypath b.c is an array of the key c for every value in the b array.

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

Sidebar

Related Questions

I have Three entities: FeatureValue.php <?php namespace Webmuch\ProductBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** *
I have three entities. Author Newspaper Dissertation Newspaper and Dissertation both can have one
I have three entities A, B, C. A has many Bs and a C,
We have an entity like Vehicle and three derived entities such as Car ,
I have 5 entity and use the custom model for the three of them
I have three entities 'A', 'B', 'C': @Entity public class A implements Serializable {
I have a Core Data model which has three entities: A, B, and C.
I have three entities: User, Office and PhoneNumber. The user has many phone numbers,
Lets say I have a entity model with three entities Item, ItemType and ItemPart.
I've an application that has three layers: 1. data layer: exposes Entity Framework entities

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.