Commit 10138176 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Nouveau champ pour savoir s'il faut rendre le rôle accessible ou non de l'extérieur

parent 514c87d9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
        <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
        <field name="libelle" type="string" column="LIBELLE" length="50" nullable="false"/>
        <field name="peutChangerStructure" type="boolean" column="PEUT_CHANGER_STRUCTURE" nullable="false" />
        <field name="accessibleExterieur" type="boolean" column="ACCESSIBLE_EXTERIEUR" nullable="false" />
        <many-to-one field="perimetre" target-entity="Application\Entity\Db\Perimetre">
            <join-columns>
                <join-column name="PERIMETRE_ID" referenced-column-name="ID"/>
+29 −0
Original line number Diff line number Diff line
@@ -38,6 +38,11 @@ class Role implements HistoriqueAwareInterface, RoleInterface
     */
    protected $perimetre;

    /**
     * @var bool
     */
    protected $accessibleExterieur = true;

    /**
     * @var boolean
     */
@@ -174,6 +179,30 @@ class Role implements HistoriqueAwareInterface, RoleInterface



    /**
     * @return bool
     */
    public function getAccessibleExterieur(): bool
    {
        return $this->accessibleExterieur;
    }



    /**
     * @param bool $accessibleExterieur
     *
     * @return self
     */
    public function setAccessibleExterieur(bool $accessibleExterieur): self
    {
        $this->accessibleExterieur = $accessibleExterieur;

        return $this;
    }



    /**
     * @return boolean
     */