1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Fix a typo in a code example (getResults instead of getResult)

This commit is contained in:
meze 2012-02-19 03:01:29 +04:00
parent 138b67db86
commit 86010bdb0d

View File

@ -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: