IMHO you should never flatten a many-to-many (especially across models).

Alan

On May 30, 2008, at 1:47 PM, Gennady Kushnir wrote:

Flattening relationshops (consequently - many-to-many relations) does
not work across database (consequently - EOModel) boundaries
Unfortunately.
It is mentioned in Using EOModeler manual. So you have to traverse
relationships programmatically I assume.

Gennady

2008/5/29 Juergen Lorenz Simon <[EMAIL PROTECTED]>:
Hi,

I'm trying to model a relationship across two EOF Models:

Model FirstModel (database name firstmodel)
Entity A

Model B (database name secondmodel)
Entity B

Now I have an n:m relationship between the two entities. So in Model
FirstModel,
I create join tables AB, which has relationships pointing to B.

A -> AB -> B

When I try to add or delete objects, the resulting SQL has the wrong table
name.
Instead of looking to firstmodel.AB, it looks for secondmodel.AB instead!
I'm using Project Wonder, WebObjects 5.3 and MySQL.

Anyone got an idea what that might be?

Cheers,
J.L.Simon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/genkush% 40rujel.net

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/award% 40apple.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to