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

        Hide
        Benjamin Eberlei added a comment -

        Duplicate of DDC-1927

        Show
        Benjamin Eberlei added a comment - Duplicate of DDC-1927
        Hide
        dquintard added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: