migration changed, further attempts to fix bug

This commit is contained in:
2021-10-25 17:03:45 +02:00
parent f4b9942f3c
commit 18ca01b0dc
4 changed files with 20 additions and 11 deletions

View File

@@ -40,8 +40,8 @@ class Relationship
private $toPerson;
/**
* @ORM\ManyToOne(targetEntity=Relation::class, inversedBy="relationships")
* @ORM\JoinColumn(nullable=false)
* @ORM\ManyToOne(targetEntity=Relation::class)
* @ORM\JoinColumn(nullable=false, name="relation_id", referencedColumnName="id")
* @Assert\NotBlank()
* @Groups({"read", "write"})
*/