mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-07 15:25:00 +00:00
DX: type-hing oneToMany and ManyToMany properties as collection
This commit is contained in:
@@ -42,6 +42,7 @@ class Notification implements TrackUpdateInterface
|
||||
private array $addedAddresses = [];
|
||||
|
||||
/**
|
||||
* @var Collection<User>
|
||||
* @ORM\ManyToMany(targetEntity=User::class)
|
||||
* @ORM\JoinTable(name="chill_main_notification_addresses_user")
|
||||
*/
|
||||
@@ -65,6 +66,7 @@ class Notification implements TrackUpdateInterface
|
||||
private ?ArrayCollection $addressesOnLoad = null;
|
||||
|
||||
/**
|
||||
* @var Collection<NotificationComment>
|
||||
* @ORM\OneToMany(targetEntity=NotificationComment::class, mappedBy="notification", orphanRemoval=true)
|
||||
* @ORM\OrderBy({"createdAt": "ASC"})
|
||||
*/
|
||||
@@ -112,6 +114,7 @@ class Notification implements TrackUpdateInterface
|
||||
private string $title = '';
|
||||
|
||||
/**
|
||||
* @var Collection<User>
|
||||
* @ORM\ManyToMany(targetEntity=User::class)
|
||||
* @ORM\JoinTable(name="chill_main_notification_addresses_unread")
|
||||
*/
|
||||
|
Reference in New Issue
Block a user