Commit f65cb4c1 authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

correctif de l'hydrateur

parent b0291a27
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();
@@ -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);