Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Git Master, 2.3.2
    • Fix Version/s: None
    • Component/s: Documentation, DQL, ORM
    • Security Level: All
    • Environment:
      OSX

      Description

      When you have a queryBuilder and you want to break it down using getDQLParts, You can't restore it by looping over the parts and adding them.

      This is what I am doing:

      $parts = $qb->getDQLParts();
      
      // save the parts and use them in a different environment.
      
      $newQb = $em->createQueryBuilder();
      foreach ($parts as $name => $part) {
        $newQb->add($name, $part);
      }
      

        Activity

        Dries De Peuter created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] Improvement [ 4 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Dries De Peuter
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: