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
......@@ -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;
}
......
......@@ -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"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment