Use ORM/DBAL Query builder in Persisters #6393

Closed
opened 2026-01-22 15:32:23 +01:00 by admin · 1 comment
Owner

Originally created by @hason on GitHub (Jan 30, 2020).

Feature Request

Q A
New Feature yes
RFC no
BC Break maybe

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.

Originally created by @hason on GitHub (Jan 30, 2020). ### Feature Request <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ------ | New Feature | yes | RFC | no | BC Break | maybe #### 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.
admin closed this issue 2026-01-22 15:32:23 +01:00
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6393