mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
DX: type-hing oneToMany and ManyToMany properties as collection
This commit is contained in:
@@ -32,14 +32,13 @@ class PermissionsGroup
|
||||
private $flags = [];
|
||||
|
||||
/**
|
||||
* @var Collection
|
||||
*
|
||||
* @var Collection<GroupCenter>
|
||||
* @ORM\OneToMany(
|
||||
* targetEntity="Chill\MainBundle\Entity\GroupCenter",
|
||||
* mappedBy="permissionsGroup"
|
||||
* )
|
||||
*/
|
||||
private $groupCenters;
|
||||
private Collection $groupCenters;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -58,15 +57,14 @@ class PermissionsGroup
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var Collection
|
||||
*
|
||||
* @var Collection<RoleScope>
|
||||
* @ORM\ManyToMany(
|
||||
* targetEntity="Chill\MainBundle\Entity\RoleScope",
|
||||
* inversedBy="permissionsGroups",
|
||||
* cascade={ "persist" })
|
||||
* @ORM\Cache(usage="NONSTRICT_READ_WRITE")
|
||||
*/
|
||||
private $roleScopes;
|
||||
private Collection $roleScopes;
|
||||
|
||||
/**
|
||||
* PermissionsGroup constructor.
|
||||
|
Reference in New Issue
Block a user