Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1221

Fatal Error when building a query using ->add() instead of ->from()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.1
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      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

        Activity

        Hide
        Christophe Coevoet added a comment -
        Show
        Christophe Coevoet added a comment - Note that this issue has been introduced by https://github.com/doctrine/doctrine2/commit/905e05cd361e9702325e3ea26224b95ac4f7d2e0
        Hide
        Benjamin Eberlei added a comment -

        This is fixed, thanks for reporting this regression.

        Show
        Benjamin Eberlei added a comment - This is fixed, thanks for reporting this regression.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Christophe Coevoet
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: