mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3562: Make two different join request with different join condition with Doctrine ORM #4381
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Feb 6, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user congelli501:
I want to make two requests on an object and join a one to many relation using doctrine ORM. The first request has different condition on the joined object.
The first request should join one object, and the second one two, but both return one object when run with the same EntityManager context.
The test entity
Adding some test data
Run the queries
$em->clear()between the two statements works, but I don't want to untrack my other entities.