• 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
Re: Problems with addObjectToBothSidesOfRelationshipWithKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with addObjectToBothSidesOfRelationshipWithKey


  • Subject: Re: Problems with addObjectToBothSidesOfRelationshipWithKey
  • From: Owen McKerrow <email@hidden>
  • Date: Fri, 19 Oct 2007 13:47:09 +1000

Further information....

When I try and print out the revrse relationship from AuthorPub back to Person I get null. i.e. EOF can't find the reverse relationship back to the Person from the join.

log.debug("The relationship going back the other way is ...." + tempRec.inverseForRelationshipKey(relationshipName));

give us

The relationship going back the other way is ....null

Which to me means I don't have the relationships inside EOModel set up correctly ?? What are other peoples take on this ?

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
'The test of a first-rate intelligence is the ability to hold two opposed ideas in the mind at the same time and still be able to function.'
-F.Scott Fitzgerald,



On 19/10/2007, at 12:04 PM, Owen McKerrow wrote:

Hi Lachlan,

Nope that didn't fix it either :(

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
'The test of a first-rate intelligence is the ability to hold two opposed ideas in the mind at the same time and still be able to function.'
-F.Scott Fitzgerald,



On 19/10/2007, at 11:36 AM, Lachlan Deck wrote:

Hi Owen,

On 19/10/2007, at 11:24 AM, Owen McKerrow wrote:

Im having a problem with addObjectToBothSidesOfRelationshipWithKey, either that or I don't understand how its meant to work correctly. That is when you use addObjectToBothSidesOfRelationshipWithKey the relationships between both objects should be updated. So if you have a relationship between a dog and a cat, when you use addObjectToBothSidesOfRelationshipWithKey to set the dog's relationship to cat, its should auto set the cat's relationship back to the dog.

Try the ol' removeObjectFromBothSidesForKey on objects you're re- pointing elsewhere.


with regards,
--

Lachlan Deck

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


This email sent to email@hidden

_______________________________________________ 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: Problems with addObjectToBothSidesOfRelationshipWithKey
      • From: Sam Barnum <email@hidden>
References: 
 >Problems with addObjectToBothSidesOfRelationshipWithKey (From: Owen McKerrow <email@hidden>)
 >Re: Problems with addObjectToBothSidesOfRelationshipWithKey (From: Lachlan Deck <email@hidden>)
 >Re: Problems with addObjectToBothSidesOfRelationshipWithKey (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Re: Problems with addObjectToBothSidesOfRelationshipWithKey
  • Next by Date: Re: Problems with addObjectToBothSidesOfRelationshipWithKey
  • Previous by thread: Re: Problems with addObjectToBothSidesOfRelationshipWithKey
  • Next by thread: Re: Problems with addObjectToBothSidesOfRelationshipWithKey
  • Index(es):
    • Date
    • Thread