• 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: Fetching the data of a many-to many relationShip
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetching the data of a many-to many relationShip


  • Subject: Re: Fetching the data of a many-to many relationShip
  • From: David Avendasora <email@hidden>
  • Date: Thu, 2 Jul 2009 05:48:08 -0400


On Jul 2, 2009, at 5:19 AM, Gustavo Pizano wrote:

Hello.

I have the following:

I have a Entity called WG, and one called, TRANSLATIONSET. so the relationship is WG << >> TRANSLATIONSET.

if I have the wg , I want to get all the TRANSLATIONSET that this partigual wg has. Whne I was definiyng the EOModel, I set up a manytomany relationship with a join table called WGxTS and I unchecked the Flattern box, I read it somewhere.

If all the WGxTS table is doing is being a join table for a many-to- many relationship, then flattening it I believe is the right thing to do.


so if I do.

NSArray aux = wg.toTranslationSets();

If you don't do flattening, then you'd need something along the lines of: wg.toTranslationSets().valueForKey("TranslationSet")


Dave

the contents of aux are all what is in the WGxTS which is not more than the pk of WG and TRANSLATIONSET related..

What am I missing here, this is the first time Im working with many- to-many rs.


Thanks in advance

Gustavo

_______________________________________________
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

_______________________________________________ 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: Fetching the data of a many-to many relationShip
      • From: Gustavo Pizano <email@hidden>
References: 
 >Fetching the data of a many-to many relationShip (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: er.excel No Such Method Error exception
  • Next by Date: Re: Fetching the data of a many-to many relationShip
  • Previous by thread: Fetching the data of a many-to many relationShip
  • Next by thread: Re: Fetching the data of a many-to many relationShip
  • Index(es):
    • Date
    • Thread