Commit 717b58e0 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Modif suite à ajout de 2 colonnes à la table VARIABLE

parent 7c11f008
Loading
Loading
Loading
Loading
+2
Changes for module/Import/src/Import/Model/Mapping/Import.Model.TmpVariable.dcm.xml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@
        <field name="libEtablissement"      type="string" column="COD_VAP"          length="50"  nullable="true"/>
        <field name="libResponsable"        type="string" column="LIB_VAP"          length="300" nullable="true"/>
        <field name="libTitre"              type="string" column="PAR_VAP"          length="200" nullable="true"/>
        <field name="dateDebValidite"       type="date"   column="DATE_DEB_VALIDITE"             nullable="true"/>
        <field name="dateFinValidite"       type="date"   column="DATE_FIN_VALIDITE"             nullable="true"/>
        <field name="sourceCode"            type="string" column="SOURCE_CODE"      length="64"     nullable="true"/>
    </entity>
</doctrine-mapping>
 No newline at end of file
+4
Changes for module/Import/src/Import/Model/TmpVariable.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ class TmpVariable {
    protected $libResponsable;
    protected $libTitre;
    protected $sourceCode;
    protected $dateDebValidite;
    protected $dateFinValidite;

    public function __construct($json) {
        $this->id                           = $json->{'id'};
@@ -18,6 +20,8 @@ class TmpVariable {
        $this->libEtablissement             = $json->{'libEtablissement'};
        $this->libResponsable               = $json->{'libResponsable'};
        $this->libTitre                     = $json->{'libTitre'};
        $this->dateDebValidite              = new \DateTime($json->{'dateDebValidite'}->{'date'});
        $this->dateFinValidite              = new \DateTime($json->{'dateFinValidite'}->{'date'});
    }

}
 No newline at end of file