mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 01:13:14 +02:00
setFetchMode() is ignored - Exception eager Fetch Join With Not Allowed #7285
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 @insekticid on GitHub (Dec 20, 2023).
Query
Result
There should be check over SqlWalker::getQuery()->getHint('fetchMode') in case you override fetchMode()
Maybe there is a bug in $relation->fetch, where fetchMode should be propagated from hints?
https://github.com/doctrine/orm/blame/28d03e41f7b58781c516404bf179806e10a84ec5/lib/Doctrine/ORM/Query/SqlWalker.php#L897
Maybe related with
https://github.com/doctrine/orm/issues/7860