Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1935

Not all identifier properties can be found in the ResultSetMapping: id

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: Tools
    • Security Level: All
    • Labels:

      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

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            dquintard
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: