Fix another mess in Mini Tutorial.
This commit is contained in:
parent
c8e7ff51c4
commit
2e00e9d715
@ -364,20 +364,18 @@ 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
|
|
||||||
|
|
||||||
$q = $em->
|
|
||||||
|
|
||||||
createQuery('select u from Entities u where u.name = ?1');
|
|
||||||
$q->setParameter(1, 'Garfield'); $garfield =
|
|
||||||
$q->getSingleResult();
|
|
||||||
|
|
||||||
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
|
You just created your first DQL query to retrieve the user with the
|
||||||
|
Loading…
Reference in New Issue
Block a user