Merge pull request #73 from AmirBehzad/TutorialFixes
Update en/tutorials/getting-started-xml-edition.rst
This commit is contained in:
commit
ce0873d589
@ -100,6 +100,7 @@ following set of classes. Put them into `entities/Bug.php`,
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
// Bug.php
|
||||||
class Bug
|
class Bug
|
||||||
{
|
{
|
||||||
protected $id;
|
protected $id;
|
||||||
@ -107,6 +108,11 @@ following set of classes. Put them into `entities/Bug.php`,
|
|||||||
protected $created;
|
protected $created;
|
||||||
protected $status;
|
protected $status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.. code-block:: php
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// Product.php
|
||||||
class Product
|
class Product
|
||||||
{
|
{
|
||||||
protected $id;
|
protected $id;
|
||||||
@ -127,6 +133,9 @@ following set of classes. Put them into `entities/Bug.php`,
|
|||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.. code-block:: php
|
||||||
|
// User.php
|
||||||
class User
|
class User
|
||||||
{
|
{
|
||||||
protected $id;
|
protected $id;
|
||||||
@ -210,6 +219,7 @@ with the assumptions about related collections:
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
// entities/User.php
|
// entities/User.php
|
||||||
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
class User
|
class User
|
||||||
{
|
{
|
||||||
protected $reportedBugs = null;
|
protected $reportedBugs = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user