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

Closed
opened 2026-01-22 13:14:17 +01:00 by admin · 2 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:17 +01:00
admin closed this issue 2026-01-22 13:14:19 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 14, 2011):

Comment created by @guilhermeblanco:

Fixed on master

08f2af489e

Also implemented associated TODO.

@doctrinebot commented on GitHub (May 14, 2011): Comment created by @guilhermeblanco: Fixed on master https://github.com/doctrine/doctrine2/commit/08f2af489e6e4d993171c9a6111487d99b4695e1 Also implemented associated TODO.
Author
Owner

@doctrinebot commented on GitHub (May 14, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 14, 2011): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1436