Details
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
Stanislav Anisimov
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
Paginator does not work with composed primary key, because 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 |
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 |
Marco Pivetta
made changes -
| Issue Type | Bug [ 1 ] | New Feature [ 2 ] |
| Priority | Critical [ 2 ] | Major [ 3 ] |