1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Merge pull request #81 from meze/patch-1

Fix a typo in a code example (getResults instead of getResult)
This commit is contained in:
Benjamin Eberlei 2012-02-18 15:55:38 -08:00
commit 9b484192c4

View File

@ -208,7 +208,7 @@ Retrieve the Username and Name of a CmsUser:
<?php
$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'];
Retrieve a ForumUser and his single associated entity: