DDC-1140: QueryBuilder getRootAlias fails when using add('from') instead of from() #1432

Open
opened 2026-01-22 13:14:13 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (May 9, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user stof:

When using $qb->add('from', 'Entities\User u') the DQL part will contain a string instead of an Expr\From instance. So getRootAlias throw a PHP Error because it tries to access the getAlias method

Originally created by @doctrinebot on GitHub (May 9, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user stof: When using `$qb->add('from', 'Entities\User u')` the DQL part will contain a string instead of an Expr\From instance. So getRootAlias throw a PHP Error because it tries to access the getAlias method
admin added the Bug label 2026-01-22 13:14:13 +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#1432