Commit 3d6d605a authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Ajout de l'option "Diplôme national" pour Lyon 3

parent 64dfaeb5
Loading
Loading
Loading
Loading
+12
Changes for data/ddl/table/TYPE_FORMATION.php: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,18 @@ return [
    'commentaire' => NULL,
    'sequence'    => 'TYPE_FORMATION_ID_SEQ',
    'columns'     => [
        'DIPLOME_NATIONAL'      => [
            'name'        => 'DIPLOME_NATIONAL',
            'type'        => 'bool',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 14,
            'commentaire' => NULL,
        ],
        'GROUPE_ID'             => [
            'name'        => 'GROUPE_ID',
            'type'        => 'int',
+1
Changes for data/ddl_columns_pos.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -1664,6 +1664,7 @@ return [
        'HISTO_DESTRUCTION',
        'HISTO_DESTRUCTEUR_ID',
        'SERVICE_STATUTAIRE',
        'DIPLOME_NATIONAL',
    ],
    'TYPE_HEURES'                    => [
        'ID',
+1
Changes for module/OffreFormation/src/Entity/Db/Mapping/OffreFormation.Entity.Db.TypeFormation.dcm.xml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
    <field name="libelleLong" type="string" column="LIBELLE_LONG" length="80" nullable="false"/>
    <field name="sourceCode" type="string" column="SOURCE_CODE" length="100" nullable="true"/>
    <field name="serviceStatutaire" type="boolean" column="SERVICE_STATUTAIRE" nullable="false"/>
    <field name="diplomeNational" type="boolean" column="DIPLOME_NATIONAL" nullable="false"/>
    <many-to-one field="source" target-entity="UnicaenImport\Entity\Db\Source">
      <join-columns>
        <join-column name="SOURCE_ID" referenced-column-name="ID"/>
+18 −3
Changes for module/OffreFormation/src/Entity/Db/TypeFormation.php: 18 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -38,11 +38,10 @@ class TypeFormation extends AbstractEntityService implements HistoriqueAwareInte
     */
    protected ?GroupeTypeFormation $groupe = null;

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

    protected bool $diplomeNational = false;


    /**
     * retourne la classe des entités
@@ -168,6 +167,22 @@ class TypeFormation extends AbstractEntityService implements HistoriqueAwareInte



    public function isDiplomeNational(): bool
    {
        return $this->diplomeNational;
    }



    public function setDiplomeNational(bool $diplomeNational): TypeFormation
    {
        $this->diplomeNational = $diplomeNational;

        return $this;
    }



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