Fix mess in Mini-Tutorial of Introduction chapter.
This commit is contained in:
parent
29b47d3d44
commit
6e7f47bf9e
@ -318,19 +318,19 @@ Mini-tutorial
|
||||
the following:
|
||||
|
||||
|
||||
.. raw:: html
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
//... bootstrap stuff
|
||||
|
||||
## PUT YOUR TEST CODE BELOW
|
||||
|
||||
$user = new \Entities\User;
|
||||
$user->
|
||||
|
||||
setName('Garfield'); :math:`$em->persist($`user); $em->flush();
|
||||
<?php
|
||||
//... bootstrap stuff
|
||||
|
||||
echo "User saved!";
|
||||
## PUT YOUR TEST CODE BELOW
|
||||
|
||||
$user = new \Entities\User;
|
||||
$user->setName('Garfield');
|
||||
$em->persist($user);
|
||||
$em->flush();
|
||||
|
||||
echo "User saved!";
|
||||
|
||||
|
||||
Open index.php in your browser or execute it on the command line.
|
||||
|
Loading…
Reference in New Issue
Block a user