1
0
mirror of synced 2024-12-15 07:36:03 +03:00

Fix another code block

This commit is contained in:
Benjamin Eberlei 2010-12-14 23:35:17 +01:00
parent 76743431a4
commit 65fe9b86c5

View File

@ -372,8 +372,8 @@ database.
## PUT YOUR TEST CODE BELOW ## PUT YOUR TEST CODE BELOW
$q = $em->createQuery('select u from Entities\User u where u.name = ?1'); $q = $em->createQuery('select u from Entities\User u where u.name = ?1');
$q->setParameter(1, 'Garfield'); $garfield = $q->setParameter(1, 'Garfield');
$q->getSingleResult(); $garfield = $q->getSingleResult();
echo "Hello " . $garfield->getName() . "!"; echo "Hello " . $garfield->getName() . "!";