add a ScopePickerType and a UserPickerType

Those type allow easily to

- pick a Scope/circle in form
- pick a user in form
This commit is contained in:
2017-04-25 17:29:25 +02:00
parent b038cdfdf5
commit 95145171da
10 changed files with 292 additions and 1 deletions

View File

@@ -49,9 +49,16 @@ class PermissionsGroup
*/
private $roleScopes;
/**
*
* @var \Doctrine\Common\Collections\Collection
*/
private $groupCenters;
public function __construct()
{
$this->roleScopes = new \Doctrine\Common\Collections\ArrayCollection();
$this->groupCenters = new \Doctrine\Common\Collections\ArrayCollection();
}
public function getId()

View File

@@ -45,8 +45,15 @@ class RoleScope
*/
private $scope;
/**
*
* @var \Doctrine\Common\Collections\Collection
*/
private $permissionsGroups;
public function __construct() {
$this->new = true;
$this->permissionsGroups = new \Doctrine\Common\Collections\ArrayCollection();
}
public function getId()