Commit 4bf1ac49 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Notice PHP causée par une collection non initialisée

parent 9b7f3b71
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ class Structure implements StructureInterface, HistoriqueAwareInterface, SourceA
    protected $roles;

    /**
     * @var Structure[]
     * @var ArrayCollection|Structure[]
     */
    private $structuresSubstituees;

@@ -136,6 +136,12 @@ class Structure implements StructureInterface, HistoriqueAwareInterface, SourceA
        return $structure;
    }

    public function __construct()
    {
        $this->structuresSubstituees = new ArrayCollection();
        $this->documents = new ArrayCollection();
    }

    /**
     * Indique si cette structure se substitue à d'autres structures.
     *