Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1761

Small error on DQL documentation page

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: DQL
    • Labels:
      None

      Description

      On this document page:
      http://docs.doctrine-project.org/projects/doctrine-orm/en/2.0.x/reference/dql-doctrine-query-language.html#dql-select-examples

      The following lines are present:
      $query = $em->createQuery('SELECT u.username, u.name FROM CmsUser u');
      $users = $query->getResults(); // array of CmsUser username and name values
      echo $users[0]['username'];

      There is an error in:
      $query->getResults();

      It should read
      $query->getResult();

        Activity

        Tim Roediger created issue -
        Tim Roediger made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Trivial [ 5 ]
        Security All [ 10000 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13600 ] jira-feedback [ 14047 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14047 ] jira-feedback2 [ 15911 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15911 ] jira-feedback3 [ 18166 ]

        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-1761, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Tim Roediger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: