Total Complexity | 1 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class ParentClass |
||
14 | { |
||
15 | /** |
||
16 | * @ORM\Id |
||
17 | * @ORM\Column(name="id", type="integer") |
||
18 | * |
||
19 | * @var integer |
||
20 | */ |
||
21 | public $id; |
||
22 | |||
23 | /** |
||
24 | * @ORM\ManyToMany(targetEntity=ChildClass::class, mappedBy="parents", orphanRemoval=true, cascade={"persist"}) |
||
25 | * |
||
26 | * @var Collection|ChildClass[] |
||
27 | */ |
||
28 | public $children; |
||
29 | |||
30 | public function __construct(int $id) |
||
36 |