[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


 Description   

$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



 Comments   
Comment by dquintard [ 20/Jul/12 ]

It seems that this issue is the same that:
http://www.doctrine-project.org/jira/browse/DDC-1927

Comment by Benjamin Eberlei [ 29/Jul/12 ]

Duplicate of DDC-1927

Generated at Mon Nov 24 08:25:14 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.