Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1849

Paginator: The Parameter Types are not set in Function cloneQuery

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.3
    • Component/s: Tools
    • Security Level: All
    • Labels:
      None

      Description

      The Parameter-Types are not set in the Function cloneQuery in the Paginator-Class (Doctrine/ORM/Tools/Pagination/Paginator.php line 172):

      $cloneQuery->setParameters($query->getParameters());

      But it should be:

      $cloneQuery->setParameters($query->getParameters(), $query->getParameterTypes());

        Activity

        Hide
        Marco Pivetta added a comment -

        Could you try to use latest master? This should already be solved as now parameters are instances of `Doctrine\ORM\Query\Parameter`, which also means that they enclose their type

        Show
        Marco Pivetta added a comment - Could you try to use latest master? This should already be solved as now parameters are instances of `Doctrine\ORM\Query\Parameter`, which also means that they enclose their type
        Hide
        Guilherme Blanco added a comment -

        Fixed in master

        Show
        Guilherme Blanco added a comment - Fixed in master

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Aline Blaser
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: