Separated listings of User.php, Bug.php, and Product.php. Added missed statement to use ArrayCollection in User.php .
This commit is contained in:
parent
6d1f716f8b
commit
bc91e5c0fd
@ -100,6 +100,7 @@ following set of classes. Put them into `entities/Bug.php`,
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
// Bug.php
|
||||
class Bug
|
||||
{
|
||||
protected $id;
|
||||
@ -107,6 +108,11 @@ following set of classes. Put them into `entities/Bug.php`,
|
||||
protected $created;
|
||||
protected $status;
|
||||
}
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
// Product.php
|
||||
class Product
|
||||
{
|
||||
protected $id;
|
||||
@ -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;
|
||||
@ -210,6 +219,7 @@ with the assumptions about related collections:
|
||||
|
||||
<?php
|
||||
// entities/User.php
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
class User
|
||||
{
|
||||
protected $reportedBugs = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user