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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:23:45+00:00 2026-06-14T17:23:45+00:00

I have the following Core Data model, in which ProFormaPeriod is a subclass of

  • 0

I have the following Core Data model, in which ProFormaPeriod is a subclass of the abstract entity FiscalPeriod. In my fetch request, I would like to traverse from CalendarPeriod to IBEstType.

How can I do this as fiscalPeriod is the only relationship I get offered in code completion and not ProformaPeriod.

Would I need to model an additional direct relationship from CalendarPeriod to ProformaPeriod?

enter image description here

  • 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-14T17:23:46+00:00Added an answer on June 14, 2026 at 5:23 pm

    One way is to fetch FiscalPeriod and traverse the result to check for the right class and filter out the correct IBEstType(s). It should still be quite efficient as opposed to a direct key path in the predicate, depending on the size of your data.

    Otherwise, yes, you would have to make the child entity a direct relationship.

    To check for the class:

    for (NSManagedObject *obj in fetchedFiscalPeriods) { 
        if ([obj isKindOfClass:[ProformaPeriod class]]) {
            ProformaPeriod *period = (ProformaPeriod*) obj;
            // check period.estimateType
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following core data model with two entities: entity item which holds
I have a Core Data model in which a Task entity includes an optional
I have an entity in my core data model like this: @interface Selection :
I have a fetch request defined within my core data model called RemainingGaneProjections. I
I have a core data model with the following info: Entity: CourseSubjects Attributes: -account_id
I have an entity called Task in my Core Data model. The Task entity
Given the following Core Data Model: -> : to-one releationship ->>: to-many relationship Entity
I have a Core Data model entity NoteObject that has a transformable type arrayOfTags
I have a core data model with an entity called clients that is made
I have a S#arp MVC application with following projects/layers : Core (Model) Data Web

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.