Commit 1798f954 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout des entités et mapping

parent 7a9a5d15
<?php
namespace ImportData\V1\Entity\Db;
/**
* Structure
*/
class EcoleDoctorale
{
/**
* @var string
*/
private $id;
/**
* @var string
*/
private $sourceId;
/**
* @var string
*/
private $structureId;
/**
* @return string
*/
public function getId(): string
{
return $this->id;
}
/**
* @param string $id
*/
public function setId(string $id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getSourceId(): string
{
return $this->sourceId;
}
/**
* @param string $sourceId
*/
public function setSourceId(string $sourceId)
{
$this->sourceId = $sourceId;
}
/**
* @return string
*/
public function getStructureId(): string
{
return $this->structureId;
}
/**
* @param string $structureId
*/
public function setStructureId(string $structureId)
{
$this->structureId = $structureId;
}
}
<?php
namespace ImportData\V1\Entity\Db;
/**
* Structure
*/
class Etablissement
{
/**
* @var string
*/
private $id;
/**
* @var string
*/
private $sourceId;
/**
* @var string
*/
private $structureId;
/**
* @return string
*/
public function getId(): string
{
return $this->id;
}
/**
* @param string $id
*/
public function setId(string $id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getSourceId(): string
{
return $this->sourceId;
}
/**
* @param string $sourceId
*/
public function setSourceId(string $sourceId)
{
$this->sourceId = $sourceId;
}
/**
* @return string
*/
public function getStructureId(): string
{
return $this->structureId;
}
/**
* @param string $structureId
*/
public function setStructureId(string $structureId)
{
$this->structureId = $structureId;
}
}
<?xml version="1.0" encoding="utf-8"?>
<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\EcoleDoctorale" table="APOGEE.OBJECTH_ECOLE_DOCT">
<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"/>
</entity>
</doctrine-mapping>
<?xml version="1.0" encoding="utf-8"?>
<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="APOGEE.OBJECTH_ETAB">
<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"/>
</entity>
</doctrine-mapping>
<?xml version="1.0" encoding="utf-8"?>
<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\UniteRecherche" table="APOGEE.OBJECTH_UNITE_RECH">
<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"/>
</entity>
</doctrine-mapping>
<?php
namespace ImportData\V1\Entity\Db;
/**
* Structure
*/
class UniteRecherche
{
/**
* @var string
*/
private $id;
/**
* @var string
*/
private $sourceId;
/**
* @var string
*/
private $structureId;
/**
* @return string
*/
public function getId(): string
{
return $this->id;
}
/**
* @param string $id
*/
public function setId(string $id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getSourceId(): string
{
return $this->sourceId;
}
/**
* @param string $sourceId
*/
public function setSourceId(string $sourceId)
{
$this->sourceId = $sourceId;
}
/**
* @return string
*/
public function getStructureId(): string
{
return $this->structureId;
}
/**
* @param string $structureId
*/
public function setStructureId(string $structureId)
{
$this->structureId = $structureId;
}
}
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