Commit 30371a6d authored by Florian Joriot's avatar Florian Joriot
Browse files

Correction probleme d'ajout de statut sur les types d'interventions

parent b4a40985
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ return [
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 8,
            'commentaire' => NULL,
@@ -40,7 +40,7 @@ return [
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 7,
            'commentaire' => NULL,
@@ -88,7 +88,7 @@ return [
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 9,
            'commentaire' => NULL,
+5 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ class TypeInterventionController extends AbstractController
        $this->em()->getFilters()->enable('historique')->init([
            TypeIntervention::class,
            TypeInterventionStructure::class,
            TypeInterventionStatut::class,
        ]);

        $annee  = $this->getServiceContext()->getAnnee();
@@ -50,6 +51,10 @@ class TypeInterventionController extends AbstractController

    public function statutAction()
    {
        $this->em()->getFilters()->enable('historique')->init([
            TypeInterventionStatut::class,
        ]);

        /** @var TypeIntervention $typeIntervention */
        $typeIntervention        = $typeIntervention = $this->getEvent()->getParam('typeIntervention');
        $typeInterventionStatuts = $typeIntervention->getTypeInterventionStatut($this->getServiceContext()->getAnnee());
+13 −0
Original line number Diff line number Diff line
@@ -21,5 +21,18 @@
        <many-to-one field="statut" target-entity="Intervenant\Entity\Db\Statut">
            <join-column name="STATUT_ID" referenced-column-name="ID"/>
        </many-to-one>

        <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
        <many-to-one field="histoCreateur" target-entity="Application\Entity\Db\Utilisateur">
            <join-column name="HISTO_CREATEUR_ID" referenced-column-name="ID"/>
        </many-to-one>
        <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
        <many-to-one field="histoModificateur" target-entity="Application\Entity\Db\Utilisateur">
            <join-column name="HISTO_MODIFICATEUR_ID" referenced-column-name="ID"/>
        </many-to-one>
        <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
        <many-to-one field="histoDestructeur" target-entity="Application\Entity\Db\Utilisateur">
            <join-column name="HISTO_DESTRUCTEUR_ID" referenced-column-name="ID"/>
        </many-to-one>
    </entity>
</doctrine-mapping>
+0 −2
Original line number Diff line number Diff line
@@ -109,9 +109,7 @@
        </many-to-one>
        <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
        <many-to-one field="histoDestructeur" target-entity="Application\Entity\Db\Utilisateur">
            <join-columns>
                <join-column name="HISTO_DESTRUCTEUR_ID" referenced-column-name="ID"/>
            </join-columns>
        </many-to-one>
    </entity>
</doctrine-mapping>