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

        dquintard created issue -
        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
        Hide
        Benjamin Eberlei added a comment -

        Duplicate of DDC-1927

        Show
        Benjamin Eberlei added a comment - Duplicate of DDC-1927
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1935, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: