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