1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Fix mess in Mini-Tutorial of Introduction chapter.

This commit is contained in:
Benjamin Eberlei 2010-12-14 23:29:05 +01:00
parent 29b47d3d44
commit 6e7f47bf9e

View File

@ -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.