diff --git a/src/Bundle/ChillMainBundle/Entity/Notification.php b/src/Bundle/ChillMainBundle/Entity/Notification.php index 76a4b1e4c..51ea0e39f 100644 --- a/src/Bundle/ChillMainBundle/Entity/Notification.php +++ b/src/Bundle/ChillMainBundle/Entity/Notification.php @@ -27,7 +27,12 @@ use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=NotificationRepository::class) - * @ORM\Table(name="chill_main_notification") + * @ORM\Table( + * name="chill_main_notification", + * uniqueConstraints={ + * @ORM\UniqueConstraint(columns={"relatedEntityClass", "relatedEntityId"}) + * } + * ) */ class Notification {