mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Add QueryBuilder::setFetchMode #6505
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 @kirya-dev on GitHub (Jul 23, 2020).
Feature Request
Summary
Im would like to add new configure query builder method.
Im has following code:
Me need set fetch mode, but is impossible because getQuery creates new Query. There useless
setFetchModeon new QuerygetQuerymust setfetchModealsolifetime,cacheMode,cacheableetc..2a98a98cd3/lib/Doctrine/ORM/QueryBuilder.php (L344-L369)@beberlei commented on GitHub (Dec 6, 2020):
This would be convenient, but also annoying to maintain and update for each new thing, i believe you should do this on your end.