From ebb24799664f6c5c2086696f7268209d2f99266e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 2 Aug 2021 22:43:09 +0200 Subject: [PATCH] [accompanyingPeriodWorkEvaluation] store comment in db --- .../AccompanyingPeriodWorkEvaluation.php | 1 + ...companyingPeriodWorkEvaluationDocument.php | 1 + .../migrations/Version20210802202838.php | 29 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 src/Bundle/ChillPersonBundle/migrations/Version20210802202838.php diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluation.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluation.php index cce032621..cd4bb3ac4 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluation.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluation.php @@ -80,6 +80,7 @@ class AccompanyingPeriodWorkEvaluation implements TrackUpdateInterface, TrackCre /** * @var string + * @ORM\Column(type="text", nullable=false, options={"default": ""}) * @Serializer\Groups({"read"}) * @Serializer\Groups({"write"}) * @Serializer\Groups({"accompanying_period_work_evaluation:create"}) diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php index 4d652f338..2c7ca1099 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php @@ -67,6 +67,7 @@ class AccompanyingPeriodWorkEvaluationDocument implements \Chill\MainBundle\Doct */ private ?DateTimeImmutable $updatedAt; + // TODO: indiquer le document généré par le module "document" private ?StoredObject $storedObject; // TODO: ajouter gabarit diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20210802202838.php b/src/Bundle/ChillPersonBundle/migrations/Version20210802202838.php new file mode 100644 index 000000000..8ef9f59d2 --- /dev/null +++ b/src/Bundle/ChillPersonBundle/migrations/Version20210802202838.php @@ -0,0 +1,29 @@ +addSql('ALTER TABLE chill_person_accompanying_period_work_evaluation ADD comment TEXT DEFAULT \'\' NOT NULL'); + } + + public function down(Schema $schema): void + { + $this->addSql('ALTER TABLE chill_person_accompanying_period_work_evaluation DROP comment'); + } +}