Skip to content

Commit

Permalink
#328 Prevent PeopleType suppression when deleting a People and the ot…
Browse files Browse the repository at this point in the history
…her way around
  • Loading branch information
Yann-BUTSCHER-EIRL committed Mar 20, 2024
1 parent f0feabe commit d59a63d
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 d59a63d

Please sign in to comment.