• 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
faulting relationship problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

faulting relationship problem


  • Subject: faulting relationship problem
  • From: Michael Gargano <email@hidden>
  • Date: Fri, 19 Aug 2011 12:27:39 -0700
  • Acceptlanguage: en-US
  • Thread-topic: faulting relationship problem

Hi all,

	I have cascading popup buttons that are narrowing down to a particular instance of an entity and one of the popups is populated with the field from a relationship on that entity.
	So, the fetch spec. has a qualifier consisting of the values of all the previous choices and it retrieves the narrowed set of objects.  Next, I iterate through the results adding the object from the relationship to a NSMutableArray for display.  It is at this point that, periodically, the relationship returns null instead of the object.  This is a test system so there is only one entity in the database and this relationship should definitely return an item.  If I do this in reverse... I preform the fetch on the relationship's entity and use key paths in the qualifier back to the master entity it seems to go away (this is hideous).


So, to sum it up... even though the fetch returns the correct results, it seems the proxy load of the relationship slave entity sometimes fails.
This is on a PostgreSQL DB, btw.

Has anyone ever seen issues when faulting objects from a relationship?  Is it not guaranteed to return an object even if the inner join is definitely valid?


Thanks.
-Mike

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: faulting relationship problem
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Qualifier With Primary Key
  • Next by Date: Re: faulting relationship problem
  • Previous by thread: Re: Does the ERXStaticResourceRequestHandler work with those compressed jarred resources?
  • Next by thread: Re: faulting relationship problem
  • Index(es):
    • Date
    • Thread