[DDC-1935] Not all identifier properties can be found in the ResultSetMapping: id Created: 19/Jul/12  Updated: 29/Jul/12  Resolved: 29/Jul/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: Tools
Affects Version/s: Git Master
Fix Version/s: None
Security Level: All

Type: Bug Priority: Major
Reporter: dquintard Assignee: Benjamin Eberlei
Resolution: Duplicate Votes: 0
Labels: paginator


$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

Comment by dquintard [ 20/Jul/12 ]

It seems that this issue is the same that:

Comment by Benjamin Eberlei [ 29/Jul/12 ]

Duplicate of DDC-1927

Generated at Wed Dec 02 00:10:05 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.