diff --git a/en/reference/dql-doctrine-query-language.rst b/en/reference/dql-doctrine-query-language.rst index 8350c9a03..b5c01d776 100644 --- a/en/reference/dql-doctrine-query-language.rst +++ b/en/reference/dql-doctrine-query-language.rst @@ -208,7 +208,7 @@ Retrieve the Username and Name of a CmsUser: createQuery('SELECT u.username, u.name FROM CmsUser u'); - $users = $query->getResults(); // array of CmsUser username and name values + $users = $query->getResult(); // array of CmsUser username and name values echo $users[0]['username']; Retrieve a ForumUser and his single associated entity: