CountWalker with composite key #6005

Open
opened 2026-01-22 15:24:34 +01:00 by admin · 0 comments
Owner

Originally created by @eugenekurasov on GitHub (Jun 30, 2018).

Originally assigned to: @Ocramius on GitHub.

Q A
Doctrine\ORM\Tools\Pagination\CountWalker 2.6.1

Support Question

Why CountWalker is not support Entity with composite key?

$identifierFieldName = $rootClass->getSingleIdentifierFieldName();

Throw exception Single id is not allowed on composite primary key in entity Entity

Originally created by @eugenekurasov on GitHub (Jun 30, 2018). Originally assigned to: @Ocramius on GitHub. | Q | A |------------ | ----- | Doctrine\ORM\Tools\Pagination\CountWalker | 2.6.1 ### Support Question Why CountWalker is not support Entity with composite key? ``` $identifierFieldName = $rootClass->getSingleIdentifierFieldName(); ``` Throw exception `Single id is not allowed on composite primary key in entity Entity`
admin added the Won't FixQuestion labels 2026-01-22 15:24:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6005