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: http://www.doctrine-project.org/jira/browse/[DDC-1140](http://www.doctrine-project.org/jira/browse/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"