mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1149: Optimize OneToMany and ManyToMany without join #1446
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 (May 12, 2011).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user morfi:
Result:
Need result:
@doctrinebot commented on GitHub (May 12, 2011):
Comment created by @beberlei:
Sure you are on git master? this should be optimized already with fetch=EAGER
@doctrinebot commented on GitHub (May 12, 2011):
Comment created by morfi:
Attach test file
I run
and run testDoctrine.php
Result
@doctrinebot commented on GitHub (Oct 10, 2011):
Comment created by @guilhermeblanco:
Please instead of using fetch="EAGER", please use fetch="EXTRA_LAZY". It would fix your issue.
I have successfully tested this situation in 2.2-DEV and it works like a charm. =)
@doctrinebot commented on GitHub (Mar 25, 2013):
Comment created by fludimir:
Doctrine ORM 2.3.3 (Symfony2.2) - using LAZY or EXTRA_LAZY fetch mode there are only one query for:
$users = $em->getRepository('User')->findAll();but additional users_count queries for
foreach($users as $user) $user->languages->toArray()And if use fetch EAGER - for some reason there are 2 x users_count queries , ie each query
SELECT t0.post*id AS post_id1, t0.user_id AS user_id2 FROM posts t0 WHERE t0.user*id = ?with unique user_id executed twice
@doctrinebot commented on GitHub (Aug 4, 2013):
Comment created by koc:
Please fix this issue
@doctrinebot commented on GitHub (Nov 14, 2013):
Comment created by madhkrish:
Is this likely to be resolved soon? Or is there a good workaround that we could implement?
@doctrinebot commented on GitHub (Nov 28, 2013):
Comment created by col:
Any news on this issue?
@doctrinebot commented on GitHub (Jan 17, 2014):
Comment created by flip101:
(y) sounds very useful !
@doctrinebot commented on GitHub (Apr 16, 2014):
Comment created by @guilhermeblanco:
As of
b28fa9a05athis issue is fixed@doctrinebot commented on GitHub (Apr 16, 2014):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/42476e78f6e5a04da901