#1467: REGRESSION: Problem with many-to-many
------------------------------+---------------------------------------------
Reporter: colnector | Owner: romanb
Type: defect | Status: closed
Priority: critical | Milestone: 1.0.3
Component: Query/Hydration | Version: 1.0.0
Resolution: wontfix | Keywords:
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
------------------------------+---------------------------------------------
Comment (by romanb):
To make myself more clear it may help to ask yourself the following
question:
"How do i get from the ItemPicture class to the Puzzle class in my object
model?"
If you can navigate an association in your object model ($foo->bar->baz)
then you can join it in DQL (from foo f join f.bar b join b.baz).
To make it even more explicit write (or think) DQL like this (of course
this is not valid syntax):
"select $f from Foo $f inner join $f->bar $b inner join $b->baz".
In Java the similarity between the object model and the OQL is more
intuitive because "." is used to access members also, in php it's "->" but
we found that to be too ugly to use in an OQL.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1467#comment:17>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---