Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1618

Query::Iterate() with fetch join exception but no associaiton selected

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.5
    • Fix Version/s: 2.1.6, 2.2
    • Component/s: DQL, ORM
    • Security Level: All
    • Labels:
      None

      Description

      Iterate with fetch join in class Application\Sonata\NewsBundle\Entity\Post using association tags not allowed.

      SELECT o FROM Application\Sonata\NewsBundle\Entity\Post o LEFT JOIN o.tags s_tags LEFT JOIN o.author s_author WHERE ( o.id = :field_4f1f118cf04ff_id_0 OR o.id = :field_4f1f118cf04ff_id_1 OR o.id = :field_4f1f118cf04ff_id_2 )
      

      The SqlWalker.php (line 742) does not check if the association is selected ...

      The PR : https://github.com/doctrine/doctrine2/pull/271

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Thomas Rabaix
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: