[accompanyingPeriodWorkEvaluation] store comment in db

This commit is contained in:
Julien Fastré 2021-08-02 22:43:09 +02:00
parent 3f005aaf8f
commit ebb2479966
3 changed files with 31 additions and 0 deletions

View File

@ -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"})

View File

@ -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

View File

@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Chill\Migrations\Person;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Add comment to accompanying period work evaluation d
*/
final class Version20210802202838 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add comment to accompanying period work evaluation';
}
public function up(Schema $schema): void
{
$this->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');
}
}