Commit 18080078 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections mappings et entités Structure et Etablissement

parent 862b8edb
......@@ -22,6 +22,11 @@ class Etablissement
*/
private $structureId;
/**
* @var string
*/
private $code;
/**
* @return string
*/
......@@ -69,4 +74,20 @@ class Etablissement
{
$this->structureId = $structureId;
}
/**
* @return string
*/
public function getCode(): string
{
return $this->code;
}
/**
* @param string $code
*/
public function setCode(string $code)
{
$this->code = $code;
}
}
......@@ -2,9 +2,10 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="ImportData\V1\Entity\Db\Etablissement" table="OBJECTH_ETAB">
<entity name="ImportData\V1\Entity\Db\Etablissement" table="OBJECTH_ETABLISSEMENT">
<id name="id" type="string" column="ID" />
<field name="sourceId" type="string" length="64" column="SOURCE_ID" nullable="true"/>
<field name="structureId" type="string" length="64" column="STRUCTURE_ID" nullable="true"/>
<field name="sourceId" type="string" length="64" column="SOURCE_ID" nullable="true"/>
<field name="structureId" type="string" length="64" column="STRUCTURE_ID" nullable="true"/>
<field name="code" type="string" length="64" column="CODE" nullable="true"/>
</entity>
</doctrine-mapping>
......@@ -6,7 +6,6 @@
<id name="id" type="string" column="ID" />
<field name="sourceId" type="string" length="64" column="SOURCE_ID" nullable="true"/>
<field name="typeStructureId" type="string" length="64" column="TYPE_STRUCTURE_ID" nullable="true"/>
<field name="code" type="string" length="64" column="CODE" nullable="true"/>
<field name="sigle" type="string" length="64" column="SIGLE" nullable="true"/>
<field name="libelle" type="string" length="200" column="LIBELLE" nullable="true"/>
<field name="codePays" type="string" length="64" column="CODE_PAYS" nullable="true"/>
......
......@@ -12,11 +12,6 @@ class Structure
*/
private $id;
/**
* @var string
*/
private $code;
/**
* @var string
*/
......@@ -72,31 +67,6 @@ class Structure
return $this->id;
}
/**
* Set code
*
* @param string $code
*
* @return Structure
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set sourceId
*
......
Supports Markdown
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