Commit 0fa049c8 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Correction de bug : les rôles sans parents ne pouvaient pas être gérés via...

Correction de bug : les rôles sans parents ne pouvaient pas être gérés via l'interface. C'est désormais le cas
parent 26f79a11
......@@ -166,7 +166,7 @@ class Role implements HierarchicalRoleInterface
*
* @return self
*/
public function setParent(Role $parent)
public function setParent(Role $parent = null)
{
$this->parent = $parent;
......
......@@ -9,13 +9,14 @@ use UnicaenApp\Util;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorAwareTrait;
use Zend\Stdlib\Hydrator\HydratorInterface;
use Zend\InputFilter\InputFilterProviderInterface;
/**
* Description of RoleForm
*
* @author Laurent LECLUSE <laurent.lecluse at unicaen.fr>
*/
class RoleForm extends Form implements ServiceLocatorAwareInterface
class RoleForm extends Form implements ServiceLocatorAwareInterface, InputFilterProviderInterface
{
use ServiceLocatorAwareTrait;
use RoleServiceAwareTrait;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment