Loading src/UnicaenUtilisateur/Form/Strategy/RoleParentStrategy.php +2 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ class RoleParentStrategy implements StrategyInterface /** * {@inheritDoc} */ public function extract($value) public function extract($value, ?object $object = null) { if (null != $value) { return $value->getId(); Loading @@ -24,7 +24,7 @@ class RoleParentStrategy implements StrategyInterface /** * {@inheritDoc} */ public function hydrate($value) public function hydrate($value, ?array $data) { if (null != $value) { $parent = $this->roleService->find($value); Loading Loading
src/UnicaenUtilisateur/Form/Strategy/RoleParentStrategy.php +2 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ class RoleParentStrategy implements StrategyInterface /** * {@inheritDoc} */ public function extract($value) public function extract($value, ?object $object = null) { if (null != $value) { return $value->getId(); Loading @@ -24,7 +24,7 @@ class RoleParentStrategy implements StrategyInterface /** * {@inheritDoc} */ public function hydrate($value) public function hydrate($value, ?array $data) { if (null != $value) { $parent = $this->roleService->find($value); Loading