Loading module/Application/src/Application/Service/RendererAwareTrait.php Empty file added. module/Autoform/src/Autoform/Entity/Db/Formulaire.php +18 Changes for module/Autoform/src/Autoform/Entity/Db/Formulaire.php: 18 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ class Formulaire { private $libelle; /** @var string */ private $description; /** @var string */ private $code; /** @var ArrayCollection */ private $categories; Loading Loading @@ -67,6 +69,22 @@ class Formulaire { return $this; } /** * @return string */ public function getCode() { return $this->code; } /** * @param string $code */ public function setCode($code) { $this->code = $code; } /** * @return Categorie[] */ Loading module/Autoform/src/Autoform/Entity/Db/Mapping/Autoform.Entity.Db.Formulaire.dcm.xml +1 Changes for module/Autoform/src/Autoform/Entity/Db/Mapping/Autoform.Entity.Db.Formulaire.dcm.xml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ <field name="libelle" column="libelle" type="string" length="128" nullable="false" /> <field name="description" column="description" type="string" length="2048" nullable="false" /> <field name="code" column="code" type="string" length="256" nullable="false" /> <one-to-many target-entity="Autoform\Entity\Db\Categorie" mapped-by="formulaire" field="categories"/> Loading module/Autoform/src/Autoform/Service/Formulaire/FormulaireInstanceService.php +15 Changes for module/Autoform/src/Autoform/Service/Formulaire/FormulaireInstanceService.php: 15 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ class FormulaireInstanceService { use DateTimeAwareTrait; use EntityManagerAwareTrait; use UserServiceAwareTrait; use FormulaireServiceAwareTrait; use FormulaireReponseServiceAwareTrait; /** GESTION DES ENTITES *******************************************************************************************/ Loading Loading @@ -121,6 +122,20 @@ class FormulaireInstanceService { return $instance; } /** * @param string $code * @return FormulaireInstance */ public function createInstance($code) { $instance = new FormulaireInstance(); $formulaire = $this->getFormulaireService()->getFormulaireByCode($code); $instance->setFormulaire($formulaire); $this->create($instance); return $instance; } /** REQUETAGES ****************************************************************************************************/ /** Loading module/Autoform/src/Autoform/Service/Formulaire/FormulaireInstanceServiceFactory.php +6 −2 Changes for module/Autoform/src/Autoform/Service/Formulaire/FormulaireInstanceServiceFactory.php: 6 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -12,17 +12,21 @@ class FormulaireInstanceServiceFactory { { /** * @var EntityManager $entityManager * @var FormulaireService $formulaireService * @var FormulaireReponseService $formulaireReponseService * @var UserService $userService */ $entityManager = $container->get('doctrine.entitymanager.orm_default'); $userService = $container->get(UserService::class); $formulaireService = $container->get(FormulaireService::class); $formulaireReponseService = $container->get(FormulaireReponseService::class); $userService = $container->get(UserService::class); /** @var FormulaireInstanceService $service */ $service = new FormulaireInstanceService(); $service->setEntityManager($entityManager); $service->setUserService($userService); $service->setFormulaireService($formulaireService); $service->setFormulaireReponseService($formulaireReponseService); $service->setUserService($userService); return $service; } } No newline at end of file Loading
module/Autoform/src/Autoform/Entity/Db/Formulaire.php +18 Changes for module/Autoform/src/Autoform/Entity/Db/Formulaire.php: 18 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ class Formulaire { private $libelle; /** @var string */ private $description; /** @var string */ private $code; /** @var ArrayCollection */ private $categories; Loading Loading @@ -67,6 +69,22 @@ class Formulaire { return $this; } /** * @return string */ public function getCode() { return $this->code; } /** * @param string $code */ public function setCode($code) { $this->code = $code; } /** * @return Categorie[] */ Loading
module/Autoform/src/Autoform/Entity/Db/Mapping/Autoform.Entity.Db.Formulaire.dcm.xml +1 Changes for module/Autoform/src/Autoform/Entity/Db/Mapping/Autoform.Entity.Db.Formulaire.dcm.xml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ <field name="libelle" column="libelle" type="string" length="128" nullable="false" /> <field name="description" column="description" type="string" length="2048" nullable="false" /> <field name="code" column="code" type="string" length="256" nullable="false" /> <one-to-many target-entity="Autoform\Entity\Db\Categorie" mapped-by="formulaire" field="categories"/> Loading
module/Autoform/src/Autoform/Service/Formulaire/FormulaireInstanceService.php +15 Changes for module/Autoform/src/Autoform/Service/Formulaire/FormulaireInstanceService.php: 15 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ class FormulaireInstanceService { use DateTimeAwareTrait; use EntityManagerAwareTrait; use UserServiceAwareTrait; use FormulaireServiceAwareTrait; use FormulaireReponseServiceAwareTrait; /** GESTION DES ENTITES *******************************************************************************************/ Loading Loading @@ -121,6 +122,20 @@ class FormulaireInstanceService { return $instance; } /** * @param string $code * @return FormulaireInstance */ public function createInstance($code) { $instance = new FormulaireInstance(); $formulaire = $this->getFormulaireService()->getFormulaireByCode($code); $instance->setFormulaire($formulaire); $this->create($instance); return $instance; } /** REQUETAGES ****************************************************************************************************/ /** Loading
module/Autoform/src/Autoform/Service/Formulaire/FormulaireInstanceServiceFactory.php +6 −2 Changes for module/Autoform/src/Autoform/Service/Formulaire/FormulaireInstanceServiceFactory.php: 6 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -12,17 +12,21 @@ class FormulaireInstanceServiceFactory { { /** * @var EntityManager $entityManager * @var FormulaireService $formulaireService * @var FormulaireReponseService $formulaireReponseService * @var UserService $userService */ $entityManager = $container->get('doctrine.entitymanager.orm_default'); $userService = $container->get(UserService::class); $formulaireService = $container->get(FormulaireService::class); $formulaireReponseService = $container->get(FormulaireReponseService::class); $userService = $container->get(UserService::class); /** @var FormulaireInstanceService $service */ $service = new FormulaireInstanceService(); $service->setEntityManager($entityManager); $service->setUserService($userService); $service->setFormulaireService($formulaireService); $service->setFormulaireReponseService($formulaireReponseService); $service->setUserService($userService); return $service; } } No newline at end of file