Commit 938ff1aa authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction bug agréments suite refactoting php8

parent d9925072
Loading
Loading
Loading
Loading
+1
Changes for module/Application/src/Entity/Db/Mapping/Application.Entity.Db.TblAgrement.dcm.xml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -35,5 +35,6 @@
            </join-columns>
        </many-to-one>
        <field name="dureeVie" type="integer" column="DUREE_VIE" nullable="false" />
        <field name="codeIntervenant" type="string" column="CODE_INTERVENANT" nullable="false" />
    </entity>
</doctrine-mapping>
+2 −4
Changes for module/Application/src/Entity/Db/Mapping/Application.Entity.Db.TblPieceJointeFournie.dcm.xml: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -50,10 +50,8 @@
        <option name="default">1</option>
      </options>
    </field>
    <field name="dateValidite" type="integer" column="DATE_VALIDITE" nullable="true" >
    </field>
    <field name="codeIntervenant" type="string" column="CODE_INTERVENANT" nullable="true" >
    </field>
    <field name="dateValidite" type="integer" column="DATE_VALIDITE" nullable="true" />
    <field name="codeIntervenant" type="string" column="CODE_INTERVENANT" nullable="false" />
    <many-to-one field="dateArchive" target-entity="Application\Entity\Db\Annee">
      <join-columns>
        <join-column name="DATE_ARCHIVE" referenced-column-name="ID"/>
+16 −2
Changes for module/Application/src/Entity/Db/TblAgrement.php: 16 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -23,7 +23,9 @@ class TblAgrement implements ResourceInterface

    private int    $dureeVie      = 1;

    private Annee $anneeAgrement;
    private ?Annee $anneeAgrement = null;

    private string $codeIntervenant;



@@ -41,13 +43,25 @@ class TblAgrement implements ResourceInterface



    public function getAnneeAgrement(): Annee
    public function getAnneeAgrement(): ?Annee
    {
        return $this->anneeAgrement;
    }



    /**
     * Utile pour le finderByCodeIntervenant
     *
     * @return string
     */
    public function getCodeIntervenant(): string
    {
        return $this->codeIntervenant;
    }



    public function getResourceId(): string
    {
        return 'TblAgrement';