mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Use ORM/DBAL Query builder in Persisters #6393
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 @hason on GitHub (Jan 30, 2020).
Feature Request
Summary
The sql queries in https://github.com/doctrine/orm/blob/master/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php are created as string. If I want to modify any sql, it would be better to use DBAL query builder instead of plain string. Even better would be to use ORM Query builder to support SQL walkers.
@beberlei commented on GitHub (Feb 12, 2020):
This is done as a performance optimization, and there is intentionally no way provided to modify the SQL.