1
0
mirror of synced 2024-12-14 07:06: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,20 +364,18 @@ database.
5) Replace the contents of index.php with the following:
.. raw:: html
.. code-block:: php
<?php
//... bootstrap stuff
## PUT YOUR TEST CODE BELOW
$q = $em->
createQuery('select u from Entities u where u.name = ?1');
$q->setParameter(1, 'Garfield'); $garfield =
$q->getSingleResult();
<?php
//... bootstrap stuff
echo "Hello " . $garfield->getName() . "!";
## PUT YOUR TEST CODE BELOW
$q = $em->createQuery('select u from Entities u where u.name = ?1');
$q->setParameter(1, 'Garfield'); $garfield =
$q->getSingleResult();
echo "Hello " . $garfield->getName() . "!";
You just created your first DQL query to retrieve the user with the