mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Add unique constraint (class, id) to notifications
This commit is contained in:
parent
84913553e8
commit
a258905c59
@ -27,7 +27,12 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Entity(repositoryClass=NotificationRepository::class)
|
* @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
|
class Notification
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user