mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Inherited Entity with self-referencing ManyToMany: EXTRA_LAZY fetch mode not working #6083
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 @flaushi on GitHub (Oct 10, 2018).
I have one parent entity with several derived ones.
The derived ones hold references to the parent, with fetch="EXTRA_LAZY".
Still, when find'ing a derived one from the database, the references are fully fetched as well.
In case of a ManyToMany with 5000 references, this becomes costly.
I have illustrated my problem in detail on SO, https://stackoverflow.com/questions/52686088/inherited-entity-with-self-referencing-manytomany-extra-lazy-fetch-mode-not-wor (with bounty ;-))
Thank you for your help in advance!
@Ocramius commented on GitHub (Oct 12, 2018):
Was this supposed to be closed?
@flaushi commented on GitHub (Oct 15, 2018):
Well, I found some workaround but still think it is more a hack than a solution to my problem.
It seems there a not too many doctrine pros at SO, maybe their density is higher here ;-)