DDC-595: Create query builder from DQL #727

Open
opened 2026-01-22 12:48:17 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (May 16, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user jkleijn:

It would be nice if it were possible to create a QueryBuilder object from DQL or a Query object.

Problem is direct modification of DQL is messy (which is why the QueryBuilder exists), but sometimes you don't have a QueryBuilder object. For example when fetching a named query. Currently, unless I'm missing something, a query cannot be modified. Maybe that's by design, but it's highly impractical.

Originally created by @doctrinebot on GitHub (May 16, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user jkleijn: It would be nice if it were possible to create a QueryBuilder object from DQL or a Query object. Problem is direct modification of DQL is messy (which is why the QueryBuilder exists), but sometimes you don't have a QueryBuilder object. For example when fetching a named query. Currently, unless I'm missing something, a query cannot be modified. Maybe that's by design, but it's highly impractical.
admin added the Improvement label 2026-01-22 12:48:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#727