mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1685: Using the CountWalker on an entity with ID on OneToOne field fails #2117
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Mar 6, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user burgov:
When using the CountWalker on an entity which has @Id not on a column, but on a @OneToOne property, a fatal error occurs:
Notice: Undefined index: person in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php line 2301
In this case I'm using the Paginator by KnpLabs. Here is the trace:
And the entity:
@doctrinebot commented on GitHub (May 27, 2012):
Comment created by @beberlei:
This is a bug with the KnpPager. It doent handle this siutation and breaks the DQL => SQL AST. Our own pager throws another exception here, solving that within the scope of that ticket now.
@doctrinebot commented on GitHub (May 27, 2012):
Comment created by @beberlei:
Fixed in master.
@doctrinebot commented on GitHub (May 27, 2012):
Issue was closed with resolution "Fixed"