diff --git a/src/Entity/PushNotificationHistory/PushNotificationHistory.php b/src/Entity/PushNotificationHistory/PushNotificationHistory.php index 9984af2..0645e95 100644 --- a/src/Entity/PushNotificationHistory/PushNotificationHistory.php +++ b/src/Entity/PushNotificationHistory/PushNotificationHistory.php @@ -42,7 +42,7 @@ class PushNotificationHistory implements PushNotificationHistoryInterface /** * @ORM\ManyToOne(targetEntity="Sylius\Component\Core\Model\ShopUserInterface") * - * @ORM\JoinColumn(nullable=false) + * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private ShopUserInterface $user; diff --git a/src/Entity/UserSubscription/UserSubscription.php b/src/Entity/UserSubscription/UserSubscription.php index 30f0783..207589d 100644 --- a/src/Entity/UserSubscription/UserSubscription.php +++ b/src/Entity/UserSubscription/UserSubscription.php @@ -25,7 +25,7 @@ class UserSubscription implements UserSubscriptionInterface, ResourceInterface /** * @ORM\ManyToOne(targetEntity="Sylius\Component\Core\Model\ShopUserInterface") * - * @ORM\JoinColumn(nullable=false) + * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private ShopUserInterface $user;