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

        Thomas Rabaix created issue -
        Thomas Rabaix made changes -
        Field Original Value New Value
        Description

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

        {code}
        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 )
        {code}

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

        {code}
        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 )
        {code}


        The SqlWalker.php (line 742) does not check if the association is selected ...
        Thomas Rabaix made changes -
        Description
        Iterate with fetch join in class Application\Sonata\NewsBundle\Entity\Post using association tags not allowed.

        {code}
        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 )
        {code}


        The SqlWalker.php (line 742) does not check if the association is selected ...
        Iterate with fetch join in class Application\Sonata\NewsBundle\Entity\Post using association tags not allowed.

        {code}
        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 )
        {code}


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

        The PR : https://github.com/sonata-project/doctrine2/commit/f2f1535614f657c40aaf81c5f8af3a0d4fd2c9e4
        Thomas Rabaix made changes -
        Description Iterate with fetch join in class Application\Sonata\NewsBundle\Entity\Post using association tags not allowed.

        {code}
        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 )
        {code}


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

        The PR : https://github.com/sonata-project/doctrine2/commit/f2f1535614f657c40aaf81c5f8af3a0d4fd2c9e4
        Iterate with fetch join in class Application\Sonata\NewsBundle\Entity\Post using association tags not allowed.

        {code}
        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 )
        {code}


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

        The PR : https://github.com/doctrine/doctrine2/pull/271
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1.6 [ 10182 ]
        Fix Version/s 2.2 [ 10157 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13384 ] jira-feedback [ 15209 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15209 ] jira-feedback2 [ 17073 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17073 ] jira-feedback3 [ 19326 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: