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 -
        Show
        Dries De Peuter added a comment - I wrote a test showing the issue. https://github.com/NoUseFreak/doctrine2/commit/8574b79fd3d245532bbe7e310c5cbe083892057a
        Hide
        Benjamin Eberlei added a comment -

        This is not a bug, because restoring queries is not yet a feature of the QueryBuilder. Marking as possible improvement for future.

        Show
        Benjamin Eberlei added a comment - This is not a bug, because restoring queries is not yet a feature of the QueryBuilder. Marking as possible improvement for future.
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] Improvement [ 4 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-2254, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated: