Skip to content


DDC-1221: Fatal Error when building a query using ->add() instead of ->from() #1829

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user stof:

When creating a query using $qb->add('from', ...) instead of $qb->from(...) a fatal error is thrown when building the DQL query line 989 of the QueryBuilder because this line assumes it has a Doctrine\ORM\Query\Expr\From instance whereas it gets a string.

Note that a similar issue was fixed for $qb->getRootAlias:[DDC-1140](


Comment created by stof:

Note that this issue has been introduced by 905e05c


Comment created by @beberlei:

This is fixed, thanks for reporting this regression.


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.1 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.