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

Fix another mess in Mini Tutorial.

This commit is contained in:
Benjamin Eberlei 2010-12-14 23:33:31 +01:00
parent c8e7ff51c4
commit 2e00e9d715

View File

@ -364,16 +364,14 @@ database.
5) Replace the contents of index.php with the following: 5) Replace the contents of index.php with the following:
.. raw:: html .. code-block:: php
<?php <?php
//... bootstrap stuff //... bootstrap stuff
## PUT YOUR TEST CODE BELOW ## PUT YOUR TEST CODE BELOW
$q = $em-> $q = $em->createQuery('select u from Entities u where u.name = ?1');
createQuery('select u from Entities u where u.name = ?1');
$q->setParameter(1, 'Garfield'); $garfield = $q->setParameter(1, 'Garfield'); $garfield =
$q->getSingleResult(); $q->getSingleResult();