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:
@@ -51,14 +51,14 @@ class Scope
|
||||
private array $name = [];
|
||||
|
||||
/**
|
||||
* @var Collection
|
||||
* @var Collection<RoleScope>
|
||||
*
|
||||
* @ORM\OneToMany(
|
||||
* targetEntity="Chill\MainBundle\Entity\RoleScope",
|
||||
* mappedBy="scope")
|
||||
* @ORM\Cache(usage="NONSTRICT_READ_WRITE")
|
||||
*/
|
||||
private $roleScopes;
|
||||
private Collection $roleScopes;
|
||||
|
||||
/**
|
||||
* Scope constructor.
|
||||
|
Reference in New Issue
Block a user