Fix a typo in a code example (getResults instead of getResult)
This commit is contained in:
parent
138b67db86
commit
86010bdb0d
@ -208,7 +208,7 @@ Retrieve the Username and Name of a CmsUser:
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
$query = $em->createQuery('SELECT u.username, u.name FROM CmsUser u');
|
$query = $em->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'];
|
echo $users[0]['username'];
|
||||||
|
|
||||||
Retrieve a ForumUser and his single associated entity:
|
Retrieve a ForumUser and his single associated entity:
|
||||||
|
Loading…
Reference in New Issue
Block a user