Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 3 comments

2 participants

@doctrinebot

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)

@doctrinebot

Comment created by stof:

Note that this issue has been introduced by 905e05c

@doctrinebot

Comment created by @beberlei:

This is fixed, thanks for reporting this regression.

@doctrinebot

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.