Skip to content

Commit

Permalink
Merge pull request #329 from LUCILE-DECROZANT-TRIQUENAUX-EIRL/hotfix-…
Browse files Browse the repository at this point in the history
…328-people-deletion

#328 Prevent PeopleType suppression when deleting a People and the ot…
  • Loading branch information
Yann-BUTSCHER-EIRL authored Mar 20, 2024
2 parents f0feabe + d59a63d commit 9dc21cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Entity/People.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class People
private $addresses;

/**
* @ORM\ManyToMany(targetEntity="App\Entity\PeopleType", inversedBy="peoples", cascade={"persist", "remove"})
* @ORM\ManyToMany(targetEntity="App\Entity\PeopleType", inversedBy="peoples", cascade={"persist"})
* @ORM\JoinTable(
* name="peoples_people_types",
* joinColumns={@JoinColumn(name="people_id", referencedColumnName="id")},
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/PeopleType.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class PeopleType
private $isSensible;

/**
* @ORM\ManyToMany(targetEntity="App\Entity\People", mappedBy="types", cascade={"persist", "remove"})
* @ORM\ManyToMany(targetEntity="App\Entity\People", mappedBy="types", cascade={"persist"})
*
*/
private $peoples;
Expand Down

0 comments on commit 9dc21cc

Please sign in to comment.