Commit 41b4eeb5 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Ajout du tag pour l'accompagnement des étudiants

parent d7fab00c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -9,6 +9,18 @@ return [
    'commentaire' => NULL,
    'sequence'    => 'TYPE_MISSION_ID_SEQ',
    'columns'     => [
        'ACCOMPAGNEMENT_ETUDIANTS' => [
            'name'        => 'ACCOMPAGNEMENT_ETUDIANTS',
            'type'        => 'bool',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 12,
            'commentaire' => NULL,
        ],
        'ANNEE_ID'                 => [
            'name'        => 'ANNEE_ID',
            'type'        => 'int',
+1 −0
Original line number Diff line number Diff line
@@ -2155,6 +2155,7 @@ return [
        'HISTO_DESTRUCTION',
        'HISTO_DESTRUCTEUR_ID',
        'TAUX_REMU_ID',
        'ACCOMPAGNEMENT_ETUDIANTS',
    ],
    'MISSION'                        => [
        'ID',
+4 −2
Original line number Diff line number Diff line
@@ -38,10 +38,11 @@ return [
                'intervenants' => [
                    'pages' => [
                        'missions-type' => [
                            'label'    => "Type de mission",
                            'label'    => "Types de missions",
                            'route'    => 'missions-type',
                            'resource' => PrivilegeController::getResourceId(MissionTypeController::class, 'index'),
                            'resource' => PrivilegeController::getResourceId(Controller\MissionTypeController::class, 'index'),
                            'order'    => 70,
                            'color'    => '#BBCF55',
                        ],
                    ],
                ],
@@ -49,6 +50,7 @@ return [
        ],
    ],


    'controllers' => [
        Controller\MissionTypeController::class => Controller\MissionTypeControllerFactory::class,
    ],
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
        <many-to-one field="annee" target-entity="Application\Entity\Db\Annee">
            <join-column name="ANNEE_ID" referenced-column-name="ID"/>
        </many-to-one>
        <field name="accompagnementEtudiants" type="boolean" column="ACCOMPAGNEMENT_ETUDIANTS" nullable="false"/>

        <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
        <many-to-one field="histoCreateur" target-entity="Application\Entity\Db\Utilisateur">
+18 −0
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@ class TypeMission implements ParametreEntityInterface

    protected ?TauxRemu $tauxRemu = null;

    protected bool $accompagnementEtudiants = false;



    public function getId(): ?int
@@ -75,6 +77,22 @@ class TypeMission implements ParametreEntityInterface



    public function isAccompagnementEtudiants(): bool
    {
        return $this->accompagnementEtudiants;
    }



    public function setAccompagnementEtudiants(bool $accompagnementEtudiants): TypeMission
    {
        $this->accompagnementEtudiants = $accompagnementEtudiants;

        return $this;
    }



    public function __toString(): string
    {
        return $this->getLibelle();
Loading