Commit 07beaac8 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Suppression many to one structure id au niveau de l'entité affectation_recherche

parent c641cbf4
Loading
Loading
Loading
Loading
+8 −8
Changes for module/Application/src/Application/Entity/Db/AffectationRecherche.php: 8 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -23,9 +23,9 @@ class AffectationRecherche implements HistoriqueAwareInterface, ImportAwareInter
    protected $id;

    /**
     * @var \Application\Entity\Db\Structure
     * @var integer
     */
    protected $structure;
    protected $structureId;

    /**
     * @var \Application\Entity\Db\Intervenant
@@ -49,13 +49,13 @@ class AffectationRecherche implements HistoriqueAwareInterface, ImportAwareInter
    /**
     * Set structure
     *
     * @param \Application\Entity\Db\Structure $structure
     * @param $structureId interger
     *
     * @return AffectationRecherche
     */
    public function setStructure(\Application\Entity\Db\Structure $structure = null)
    public function setStructureId($structureId)
    {
        $this->structure = $structure;
        $this->structureId = $structureId;

        return $this;
    }
@@ -65,11 +65,11 @@ class AffectationRecherche implements HistoriqueAwareInterface, ImportAwareInter
    /**
     * Get structure
     *
     * @return \Application\Entity\Db\Structure
     * @return integer $structureId
     */
    public function getStructure()
    public function getStructureId()
    {
        return $this->structure;
        return $this->structureId;
    }


+1 −1
Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.AffectationRecherche.dcm.xml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
        <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
        <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
        <field name="sourceCode" type="string" column="SOURCE_CODE" length="100" nullable="true"/>
        <field name="structure_id" type="string" column="STRUCTURE_ID" length="100" nullable="true"/>
        <field name="structureId" type="string" column="STRUCTURE_ID" length="100" nullable="true"/>
        <many-to-one field="source" target-entity="UnicaenImport\Entity\Db\Source">
            <join-columns>
                <join-column name="SOURCE_ID" referenced-column-name="ID"/>