Details
Description
When paginating a DQL string which selects specific fields it results in the following error: PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Not all identifier properties can be found in the ResultSetMapping: id'
NOT working: 'SELECT c.id, c.number FROM Application\Entity\Course c'
WORKING: 'SELECT c FROM Application\Entity\Course c'
WORKING: 'SELECT c, c.id, c.number FROM Application\Entity\Course c'
Setting hydration mode to scalar results makes no difference.
Gist to example code and stack trace: https://gist.github.com/d5cd6d0b0ac28e722dd7
Activity
Zacharias Luiten
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Component/s | ORM [ 10012 ] |
Benjamin Eberlei
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Can't Fix [ 7 ] |