• 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: Flattened many-to-many with WOBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flattened many-to-many with WOBrowser


  • Subject: Re: Flattened many-to-many with WOBrowser
  • From: David Avendasora <email@hidden>
  • Date: Sat, 5 Feb 2011 18:11:02 -0500

Hi James,

When you flatten a Many to Many, I believe that EOF expects that it is a compound PK, and that is what it is trying to find. I appears that you have an independent PK for that join table. Either remove the flattening, or use a compound PK.

I really dislike compound PKs, but sometimes, you just have to let EOF do it's thing.

Dave

On Feb 5, 2011, at 5:27 PM, James Cicenia wrote:

Here is the error:

A valid global ID could not be obtained for entity named PortfolioProjectPortfolioProject, relationship named childProjects, primary key dictionary {childProjectRowId = 69063; }


The project with that row id (69063) does exist and would be the correct one.

WOBrowser:
childProjects: WOBrowser {
displayString = aChildProject.title;
item = aChildProject;
list = possibleChildProjects;
selections = theNewProjectItem.childProjects;
multiple = true;
}

theNewProjectItem.childProjects is the "flattened relationship".

What am I missing here?
Thanks
James Cicenia

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
References: 
 >Flattened many-to-many with WOBrowser (From: James Cicenia <email@hidden>)

  • Prev by Date: SOLVED Re: Flattened many-to-many with WOBrowser
  • Next by Date: Re: SOLVED Re: Flattened many-to-many with WOBrowser
  • Previous by thread: Re: SOLVED Re: Flattened many-to-many with WOBrowser
  • Next by thread: Re: WOWODC 2010 videos
  • Index(es):
    • Date
    • Thread