Loading module/Application/src/Application/Entity/Db/EcoleDoctorale.php +74 −12 Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 74 added lines, 12 removed lines. Original line number Diff line number Diff line Loading @@ -14,12 +14,11 @@ use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * EcoleDoctorale */ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, SourceAwareInterface class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var integer */ Loading @@ -30,6 +29,11 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour */ protected $sourceCode; /** * @var Structure */ protected $structure; /** * @var Collection */ Loading @@ -41,16 +45,7 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour public function __construct() { $this->ecoleDoctoraleIndividus = new ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; $this->structure = new Structure(); } /** Loading @@ -76,6 +71,73 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour return $this->sourceCode; } /** * @return string */ public function getLibelle() { return $this->getStructure()->getLibelle(); } /** * @param string $libelle */ public function setLibelle($libelle) { $this->getStructure()->setLibelle($libelle); } /** * @return string */ public function getCheminLogo() { return $this->getStructure()->getCheminLogo(); } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->getStructure()->setCheminLogo($cheminLogo); } /** * @return string */ public function getSigle() { return $this->getStructure()->getSigle(); } /** * @param string $sigle */ public function setSigle($sigle) { $this->getStructure()->setSigle($sigle); } /** * @param Structure $structure * @return self */ public function setStructure($structure) { $this->structure = $structure; return $this; } /** * @return Structure */ public function getStructure() { return $this->structure; } /** * @return Collection */ Loading module/Application/src/Application/Entity/Db/Etablissement.php +52 −12 Changes for module/Application/src/Application/Entity/Db/Etablissement.php: 52 added lines, 12 removed lines. Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ use UnicaenApp\Util; /** * Etablissement */ class Etablissement extends Structure class Etablissement { const CODE_COMUE = 'COMUE'; Loading @@ -17,36 +17,76 @@ class Etablissement extends Structure protected $doctorants; protected $roles; /** * @var Structure */ protected $structure; /** * @return mixed */ public function getId() public function getCode() { return $this->id; return $this->code; } /** * @param mixed $id * @param mixed $code */ public function setId($id) public function setCode($code) { $this->id = $id; $this->code = $code; } /** * @return mixed * @return string */ public function getCode() public function getLibelle() { return $this->code; return $this->getStructure()->getLibelle(); } /** * @param mixed $code * @param string $libelle */ public function setCode($code) public function setLibelle($libelle) { $this->code = $code; $this->getStructure()->setLibelle($libelle); } /** * @return string */ public function getCheminLogo() { return $this->getStructure()->getCheminLogo(); } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->getStructure()->setCheminLogo($cheminLogo); } /** * @param Structure $structure * @return self */ public function setStructure($structure) { $this->structure = $structure; return $this; } /** * @return Structure */ public function getStructure() { return $this->structure; } /** Loading module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.EcoleDoctorale.dcm.xml +6 −4 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.EcoleDoctorale.dcm.xml: 6 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -7,15 +7,11 @@ <generator strategy="SEQUENCE"/> </id> <field name="libelle" type="string" column="LIBELLE" length="200" nullable="false"/> <field name="sigle" type="string" column="SIGLE" length="40" nullable="true"/> <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/> <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="64" nullable="true"/> <field name="cheminLogo" type="string" column="CHEMIN_LOGO" length="200" nullable="true"/> <many-to-one field="source" target-entity="UnicaenImport\Entity\Db\Source"> <join-columns> Loading @@ -39,6 +35,12 @@ </join-columns> </many-to-one> <one-to-one field="structure" target-entity="Application\Entity\Db\Structure"> <join-columns> <join-column name="STRUCTURE_ID" referenced-column-name="ID"/> </join-columns> </one-to-one> <one-to-many field="ecoleDoctoraleIndividus" target-entity="Application\Entity\Db\EcoleDoctoraleIndividu" mapped-by="ecole"/> </entity> Loading module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Etablissement.dcm.xml +6 −2 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Etablissement.dcm.xml: 6 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -8,14 +8,18 @@ <id name="id" type="integer" column="ID"> <generator strategy="SEQUENCE"/> </id> <field name="code" type="string" length="32" column="CODE" nullable="false"/> <field name="libelle" type="string" length="128" column="LIBELLE" nullable="false"/> <field name="cheminLogo" type="string" column="CHEMIN_LOGO" length="200" nullable="true"/> <one-to-many field="theses" target-entity="Application\Entity\Db\These" mapped-by="etablissement"/> <one-to-many field="doctorants" target-entity="Application\Entity\Db\Doctorant" mapped-by="etablissement"/> <one-to-many field="roles" target-entity="Application\Entity\Db\Role" mapped-by="etablissement"/> <one-to-one field="structure" target-entity="Application\Entity\Db\Structure"> <join-columns> <join-column name="STRUCTURE_ID" referenced-column-name="ID"/> </join-columns> </one-to-one> </entity> </doctrine-mapping> module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Structure.dcm.xml +20 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Structure.dcm.xml: 20 added lines, 0 removed lines. Original line number Diff line number Diff line <?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="Application\Entity\Db\Structure" table="STRUCTURE"> <id name="id" type="integer" column="ID"> <generator strategy="SEQUENCE"/> </id> <field name="sigle" type="string" column="SIGLE" length="32" nullable="true"/> <field name="libelle" type="string" column="LIBELLE" length="128" nullable="false"/> <field name="cheminLogo" type="string" column="CHEMIN_LOGO" length="200" nullable="true"/> <one-to-one field="etablissement" target-entity="Application\Entity\Db\Etablissement" mapped-by="structure"/> <one-to-one field="ecoleDoctorale" target-entity="Application\Entity\Db\EcoleDoctorale" mapped-by="structure"/> <one-to-one field="uniteRecherche" target-entity="Application\Entity\Db\UniteRecherche" mapped-by="structure"/> </entity> </doctrine-mapping> Loading
module/Application/src/Application/Entity/Db/EcoleDoctorale.php +74 −12 Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 74 added lines, 12 removed lines. Original line number Diff line number Diff line Loading @@ -14,12 +14,11 @@ use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * EcoleDoctorale */ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, SourceAwareInterface class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var integer */ Loading @@ -30,6 +29,11 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour */ protected $sourceCode; /** * @var Structure */ protected $structure; /** * @var Collection */ Loading @@ -41,16 +45,7 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour public function __construct() { $this->ecoleDoctoraleIndividus = new ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; $this->structure = new Structure(); } /** Loading @@ -76,6 +71,73 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour return $this->sourceCode; } /** * @return string */ public function getLibelle() { return $this->getStructure()->getLibelle(); } /** * @param string $libelle */ public function setLibelle($libelle) { $this->getStructure()->setLibelle($libelle); } /** * @return string */ public function getCheminLogo() { return $this->getStructure()->getCheminLogo(); } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->getStructure()->setCheminLogo($cheminLogo); } /** * @return string */ public function getSigle() { return $this->getStructure()->getSigle(); } /** * @param string $sigle */ public function setSigle($sigle) { $this->getStructure()->setSigle($sigle); } /** * @param Structure $structure * @return self */ public function setStructure($structure) { $this->structure = $structure; return $this; } /** * @return Structure */ public function getStructure() { return $this->structure; } /** * @return Collection */ Loading
module/Application/src/Application/Entity/Db/Etablissement.php +52 −12 Changes for module/Application/src/Application/Entity/Db/Etablissement.php: 52 added lines, 12 removed lines. Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ use UnicaenApp\Util; /** * Etablissement */ class Etablissement extends Structure class Etablissement { const CODE_COMUE = 'COMUE'; Loading @@ -17,36 +17,76 @@ class Etablissement extends Structure protected $doctorants; protected $roles; /** * @var Structure */ protected $structure; /** * @return mixed */ public function getId() public function getCode() { return $this->id; return $this->code; } /** * @param mixed $id * @param mixed $code */ public function setId($id) public function setCode($code) { $this->id = $id; $this->code = $code; } /** * @return mixed * @return string */ public function getCode() public function getLibelle() { return $this->code; return $this->getStructure()->getLibelle(); } /** * @param mixed $code * @param string $libelle */ public function setCode($code) public function setLibelle($libelle) { $this->code = $code; $this->getStructure()->setLibelle($libelle); } /** * @return string */ public function getCheminLogo() { return $this->getStructure()->getCheminLogo(); } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->getStructure()->setCheminLogo($cheminLogo); } /** * @param Structure $structure * @return self */ public function setStructure($structure) { $this->structure = $structure; return $this; } /** * @return Structure */ public function getStructure() { return $this->structure; } /** Loading
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.EcoleDoctorale.dcm.xml +6 −4 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.EcoleDoctorale.dcm.xml: 6 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -7,15 +7,11 @@ <generator strategy="SEQUENCE"/> </id> <field name="libelle" type="string" column="LIBELLE" length="200" nullable="false"/> <field name="sigle" type="string" column="SIGLE" length="40" nullable="true"/> <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/> <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="64" nullable="true"/> <field name="cheminLogo" type="string" column="CHEMIN_LOGO" length="200" nullable="true"/> <many-to-one field="source" target-entity="UnicaenImport\Entity\Db\Source"> <join-columns> Loading @@ -39,6 +35,12 @@ </join-columns> </many-to-one> <one-to-one field="structure" target-entity="Application\Entity\Db\Structure"> <join-columns> <join-column name="STRUCTURE_ID" referenced-column-name="ID"/> </join-columns> </one-to-one> <one-to-many field="ecoleDoctoraleIndividus" target-entity="Application\Entity\Db\EcoleDoctoraleIndividu" mapped-by="ecole"/> </entity> Loading
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Etablissement.dcm.xml +6 −2 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Etablissement.dcm.xml: 6 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -8,14 +8,18 @@ <id name="id" type="integer" column="ID"> <generator strategy="SEQUENCE"/> </id> <field name="code" type="string" length="32" column="CODE" nullable="false"/> <field name="libelle" type="string" length="128" column="LIBELLE" nullable="false"/> <field name="cheminLogo" type="string" column="CHEMIN_LOGO" length="200" nullable="true"/> <one-to-many field="theses" target-entity="Application\Entity\Db\These" mapped-by="etablissement"/> <one-to-many field="doctorants" target-entity="Application\Entity\Db\Doctorant" mapped-by="etablissement"/> <one-to-many field="roles" target-entity="Application\Entity\Db\Role" mapped-by="etablissement"/> <one-to-one field="structure" target-entity="Application\Entity\Db\Structure"> <join-columns> <join-column name="STRUCTURE_ID" referenced-column-name="ID"/> </join-columns> </one-to-one> </entity> </doctrine-mapping>
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Structure.dcm.xml +20 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Structure.dcm.xml: 20 added lines, 0 removed lines. Original line number Diff line number Diff line <?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="Application\Entity\Db\Structure" table="STRUCTURE"> <id name="id" type="integer" column="ID"> <generator strategy="SEQUENCE"/> </id> <field name="sigle" type="string" column="SIGLE" length="32" nullable="true"/> <field name="libelle" type="string" column="LIBELLE" length="128" nullable="false"/> <field name="cheminLogo" type="string" column="CHEMIN_LOGO" length="200" nullable="true"/> <one-to-one field="etablissement" target-entity="Application\Entity\Db\Etablissement" mapped-by="structure"/> <one-to-one field="ecoleDoctorale" target-entity="Application\Entity\Db\EcoleDoctorale" mapped-by="structure"/> <one-to-one field="uniteRecherche" target-entity="Application\Entity\Db\UniteRecherche" mapped-by="structure"/> </entity> </doctrine-mapping>