Commit affdd30a authored by David Surville's avatar David Surville
Browse files

Ajout d'un champ description aux périmètres et catégories de périmètres

parent a6451ab2
Loading
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -23,6 +23,11 @@ abstract class AbstractPerimetre implements PerimetreInterface
     */
    protected $libelle;

    /**
     * @var string
     */
    protected $description;

    /**
     * @var int
     */
@@ -124,6 +129,25 @@ abstract class AbstractPerimetre implements PerimetreInterface
        return $this;
    }

    /**
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @param string $description
     * @return PerimetreInterface
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get ordre.
     *
+24 −0
Original line number Diff line number Diff line
@@ -23,6 +23,11 @@ abstract class AbstractPerimetreCategorie implements PerimetreCategorieInterface
     */
    protected $libelle;

    /**
     * @var string
     */
    protected $description;

    /**
     * @var int
     */
@@ -124,6 +129,25 @@ abstract class AbstractPerimetreCategorie implements PerimetreCategorieInterface
        return $this;
    }

    /**
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @param string $description
     * @return PerimetreCategorieInterface
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get ordre.
     *
+2 −1
Original line number Diff line number Diff line
@@ -19,9 +19,10 @@

        <field name="code" type="string" column="CODE" length="150" nullable="false"/>
        <field name="libelle" type="string" column="LIBELLE" length="200" nullable="false"/>
        <field name="description" type="string" column="DESCRIPTION" length="1024" nullable="true"/>
        <field name="ordre" type="integer" column="ORDRE" nullable="false"/>

        <one-to-many field="roleUsers" target-entity="UnicaenPrivilege\Entity\Db\UserRolePerimetre" mapped-by="perimetre">
        <one-to-many field="roleUsers" target-entity="UnicaenUtilisateur\Entity\Db\UserRolePerimetre" mapped-by="perimetre">
            <cascade>
                <cascade-persist/>
                <cascade-remove/>
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@

        <field name="code" type="string" column="CODE" length="150" nullable="false"/>
        <field name="libelle" type="string" column="LIBELLE" length="200" nullable="false"/>
        <field name="description" type="string" column="DESCRIPTION" length="1024" nullable="true"/>
        <field name="ordre" type="integer" column="ORDRE" nullable="false"/>

        <one-to-many field="perimetres" target-entity="UnicaenPrivilege\Entity\Db\Perimetre" mapped-by="categorie">
+11 −0
Original line number Diff line number Diff line
@@ -57,6 +57,17 @@ interface PerimetreCategorieInterface
     */
    public function setLibelle($libelle);

    /**
     * @return string
     */
    public function getDescription();

    /**
     * @param string $description
     * @return PerimetreCategorieInterface
     */
    public function setDescription($description);

    /**
     * Get ordre.
     *
Loading