Fix another mess in Mini Tutorial.
This commit is contained in:
parent
c8e7ff51c4
commit
2e00e9d715
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user