Commit 4fc75c31 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout de l'ordre d'affichage pour les role

parent ab9200e1
Loading
Loading
Loading
Loading

Empty file added.

+1
Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Role.dcm.xml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
        <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
        <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
        <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
        <field name="ordreAffichage" type="integer" column="ORDRE_AFFICHAGE" nullable="false"/>

        <many-to-one field="typeStructureDependant" target-entity="Application\Entity\Db\TypeStructure">
            <join-columns>
+25
Changes for module/Application/src/Application/Entity/Db/Role.php: 25 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -80,6 +80,11 @@ class Role extends AbstractRole
     */
    private $theseDependant = false;

    /**
     * @var int
     */
    private $ordreAffichage;

    /**
     * @return bool
     */
@@ -266,6 +271,26 @@ class Role extends AbstractRole
        return $this->getTypeStructureDependant() !== null;
    }

    /**
     * @return int
     */
    public function getOrdreAffichage()
    {
        return $this->ordreAffichage;
    }

    /**
     * @param int $ordreAffichage
     * @return Role
     */
    public function setOrdreAffichage($ordreAffichage)
    {
        $this->ordreAffichage = $ordreAffichage;
        return $this;
    }



    public function __toString() {
        $txt = "" . $this->getLibelle();
        return $txt;