Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
Separated listings of User.php, Bug.php, and Product.php. Added misse…
Browse files Browse the repository at this point in the history
…d statement to use ArrayCollection in User.php .
  • Loading branch information
amirbehzad committed Jan 5, 2012
1 parent 6d1f716 commit bc91e5c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions en/tutorials/getting-started-xml-edition.rst
Expand Up @@ -100,13 +100,19 @@ following set of classes. Put them into `entities/Bug.php`,
.. code-block:: php
<?php
// Bug.php
class Bug
{
protected $id;
protected $description;
protected $created;
protected $status;
}
.. code-block:: php
<?php
// Product.php
class Product
{
protected $id;
Expand All @@ -127,6 +133,9 @@ following set of classes. Put them into `entities/Bug.php`,
$this->name = $name;
}
}
.. code-block:: php
// User.php
class User
{
protected $id;
Expand Down Expand Up @@ -210,6 +219,7 @@ with the assumptions about related collections:
<?php
// entities/User.php
use Doctrine\Common\Collections\ArrayCollection;
class User
{
protected $reportedBugs = null;
Expand Down

0 comments on commit bc91e5c

Please sign in to comment.