Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2213

Paginator does not work with composite primary key entity

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.1
    • Fix Version/s: None
    • Component/s: ORM, Tools
    • Security Level: All
    • Environment:
      php 5.4

      Description

      Paginator does not work with composed primary key.

      "Single id is not allowed on composite primary key in entity" exception is thrown here
      https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php#L90

      Only first column values are fetched while retrieving primary keys here
      https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Pagination/Paginator.php#L173

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Stanislav Anisimov
          • Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated: