|
|
@@ -62,7 +62,7 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
#[Groups(['access_people_ref', 'access_address'])]
|
|
|
private ?string $givenName = null;
|
|
|
|
|
|
- #[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'person')]
|
|
|
+ #[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'person', cascade: ['persist'], orphanRemoval: true)]
|
|
|
private Collection $contactPoints;
|
|
|
|
|
|
#[ORM\ManyToMany(targetEntity: BankAccount::class, inversedBy: 'person', cascade: ['persist'], orphanRemoval: true)]
|
|
|
@@ -70,7 +70,7 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
#[ORM\InverseJoinColumn(name: 'bankAccount_id', referencedColumnName: 'id')]
|
|
|
private Collection $bankAccount;
|
|
|
|
|
|
- #[ORM\OneToMany(mappedBy: 'person', targetEntity: PersonAddressPostal::class, orphanRemoval: true)]
|
|
|
+ #[ORM\OneToMany(mappedBy: 'person', targetEntity: PersonAddressPostal::class, cascade: ['persist'], orphanRemoval: true)]
|
|
|
#[Groups('access_address')]
|
|
|
private Collection $personAddressPostal;
|
|
|
|