Details
Description
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
Note that this issue has been introduced by https://github.com/doctrine/doctrine2/commit/905e05cd361e9702325e3ea26224b95ac4f7d2e0