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

doctrinebot opened this Issue Jun 21, 2011 · 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: 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"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment