Make some relations bidirectionnal

This commit is contained in:
2021-04-01 11:06:36 +02:00
parent 01f24ecf1f
commit 25634ba12b
3 changed files with 66 additions and 18 deletions

View File

@@ -41,7 +41,9 @@ class Comment
private $id;
/**
* @ORM\ManyToOne(targetEntity=AccompanyingPeriod::class)
* @ORM\ManyToOne(
* targetEntity="Chill\PersonBundle\Entity\AccompanyingPeriod",
* inversedBy="comments")
* @ORM\JoinColumn(nullable=false)
*/
private $accompanyingPeriod;