Skip to content

Loading…

DDC-1935: Not all identifier properties can be found in the ResultSetMapping: id #2605

Closed
doctrinebot opened this Issue · 3 comments

2 participants

@doctrinebot

Jira issue originally created by user dquintard:

$qb1 = $em->createQueryBuilder()->select('c.id');
...
$query1 = $qb1->getQuery();

$doctrinePaginator = new \Doctrine\ORM\Tools\Pagination\Paginator($query1);
$doctrinePaginator->count(); => generate error

But works fine with $query2 !

$qb2 = $em->createQueryBuilder()->select('c');
...
$query2 = $qb2->getQuery();

$doctrinePaginator = new \Doctrine\ORM\Tools\Pagination\Paginator($query2);
$doctrinePaginator->count(); => no error

@doctrinebot

Comment created by @beberlei:

Duplicate of DDC-1927

@doctrinebot

Issue was closed with resolution "Duplicate"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.