Loading src/Octopus/Entity/Db/IndividuAffectation.php +2 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ class IndividuAffectation { private $individu; /** @var Structure */ private $structure; /** @var StructureType */ /** @var IndividuAffectationType */ private $type; /** @var Source */ private $source; Loading Loading @@ -50,7 +50,7 @@ class IndividuAffectation { } /** * @return StructureType * @return IndividuAffectationType */ public function getType() { Loading src/Octopus/Entity/Db/IndividuAffectationType.php 0 → 100644 +53 −0 Original line number Diff line number Diff line <?php namespace Octopus\Entity\Db; class IndividuAffectationType { /** @var integer */ private $id; /** @var string */ private $nom; /** @var string */ private $libelle; /** @var string */ private $description; /** * @return int */ public function getId() { return $this->id; } /** * @return string */ public function getNom() { return $this->nom; } /** * @return string */ public function getLibelle() { return $this->libelle; } /** * @return string */ public function getDescription() { return $this->description; } public function __toString() { return $this->getLibelle(); } } src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.IndividuAffectation.dcm.xml +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ <join-column name="STRUCTURE_ID" referenced-column-name="ID" /> </many-to-one> <many-to-one target-entity="Octopus\Entity\Db\StructureType" field="type"> <many-to-one target-entity="Octopus\Entity\Db\IndividuAffectationType" field="type"> <join-column name="TYPE_ID" referenced-column-name="ID" /> </many-to-one> Loading src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.IndividuAffectationType.dcm.xml 0 → 100644 +14 −0 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="Octopus\Entity\Db\IndividuAffectationType" table="INDIVIDU_AFFECTATION_TYPE"> <id name="id" type="integer" column="ID"> <generator strategy="IDENTITY"/> </id> <field name="nom" column="NOM" type="string" length="50" nullable="false"/> <field name="libelle" column="LIBELLE" type="string" length="255" nullable="false"/> <field name="description" column="DESCRIPTION" type="string" length="1024" nullable="false"/> </entity> </doctrine-mapping> No newline at end of file view/octopus/octopus/index.phtml +2 −1 Original line number Diff line number Diff line Loading @@ -61,8 +61,9 @@ use UnicaenApp\Form\Element\SearchAndSelect; <?php echo $affectation->getSource(); ?> <?php echo $affectation->getStructure()->getLibelleLong(); ?> <?php echo $affectation->getType(); ?> <?php echo $affectation->getStructure()->getType(); ?> <?php echo $affectation->getStructure()->getLibelleLong(); ?> (<?php echo $affectation->getDateDebut()->format('d/m/Y'); ?> → <?php echo ($affectation->getDateFin())?$affectation->getDateFin()->format('d/m/Y'):""; ?>) Loading Loading
src/Octopus/Entity/Db/IndividuAffectation.php +2 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ class IndividuAffectation { private $individu; /** @var Structure */ private $structure; /** @var StructureType */ /** @var IndividuAffectationType */ private $type; /** @var Source */ private $source; Loading Loading @@ -50,7 +50,7 @@ class IndividuAffectation { } /** * @return StructureType * @return IndividuAffectationType */ public function getType() { Loading
src/Octopus/Entity/Db/IndividuAffectationType.php 0 → 100644 +53 −0 Original line number Diff line number Diff line <?php namespace Octopus\Entity\Db; class IndividuAffectationType { /** @var integer */ private $id; /** @var string */ private $nom; /** @var string */ private $libelle; /** @var string */ private $description; /** * @return int */ public function getId() { return $this->id; } /** * @return string */ public function getNom() { return $this->nom; } /** * @return string */ public function getLibelle() { return $this->libelle; } /** * @return string */ public function getDescription() { return $this->description; } public function __toString() { return $this->getLibelle(); } }
src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.IndividuAffectation.dcm.xml +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ <join-column name="STRUCTURE_ID" referenced-column-name="ID" /> </many-to-one> <many-to-one target-entity="Octopus\Entity\Db\StructureType" field="type"> <many-to-one target-entity="Octopus\Entity\Db\IndividuAffectationType" field="type"> <join-column name="TYPE_ID" referenced-column-name="ID" /> </many-to-one> Loading
src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.IndividuAffectationType.dcm.xml 0 → 100644 +14 −0 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="Octopus\Entity\Db\IndividuAffectationType" table="INDIVIDU_AFFECTATION_TYPE"> <id name="id" type="integer" column="ID"> <generator strategy="IDENTITY"/> </id> <field name="nom" column="NOM" type="string" length="50" nullable="false"/> <field name="libelle" column="LIBELLE" type="string" length="255" nullable="false"/> <field name="description" column="DESCRIPTION" type="string" length="1024" nullable="false"/> </entity> </doctrine-mapping> No newline at end of file
view/octopus/octopus/index.phtml +2 −1 Original line number Diff line number Diff line Loading @@ -61,8 +61,9 @@ use UnicaenApp\Form\Element\SearchAndSelect; <?php echo $affectation->getSource(); ?> <?php echo $affectation->getStructure()->getLibelleLong(); ?> <?php echo $affectation->getType(); ?> <?php echo $affectation->getStructure()->getType(); ?> <?php echo $affectation->getStructure()->getLibelleLong(); ?> (<?php echo $affectation->getDateDebut()->format('d/m/Y'); ?> → <?php echo ($affectation->getDateFin())?$affectation->getDateFin()->format('d/m/Y'):""; ?>) Loading