Handle parent deletion in associated tables (MainBundle)

This commit is contained in:
Marc Ducobu
2021-05-25 23:45:08 +02:00
parent 73790db700
commit f1c77277f3
2 changed files with 32 additions and 1 deletions

View File

@@ -137,7 +137,7 @@ class Address
* @var ThirdParty|null
*
* @ORM\ManyToOne(targetEntity="Chill\ThirdPartyBundle\Entity\ThirdParty")
* @ORM\JoinColumn(nullable=true)
* @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
*/
private $linkedToThirdParty;