From abdb06fbcb40843db14fac54c3f8a0e33abf61bd Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Thu, 16 Jul 2026 10:56:18 +0200 Subject: [PATCH] feat: update ProjectCalendar for public shape --- src/Entity/Project/ProjectCalendar.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Entity/Project/ProjectCalendar.php b/src/Entity/Project/ProjectCalendar.php index 0efd88d..369fb61 100644 --- a/src/Entity/Project/ProjectCalendar.php +++ b/src/Entity/Project/ProjectCalendar.php @@ -4,30 +4,28 @@ namespace App\Entity\Project; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; +use Symfony\Component\Validator\Constraints as Assert; #[ORM\Embeddable()] class ProjectCalendar { /** - * The date at which the Project started campaigning. + * Public campaign start date. */ + #[Assert\NotBlank()] #[ORM\Column(type: Types::DATETIME_IMMUTABLE, nullable: true)] public ?\DateTimeImmutable $release = null; /** - * 40 days after the date of release.\ - * \ - * The minimum budget must be raised by the end of this date.\ - * Failure to do so will move the Project out of status `in_campaign` into status `unfunded`. + * The minimum budget must be raised by the end of this date, + * failure to do so will move the Project out of status `in_campaign` into status `unfunded`. */ #[ORM\Column(type: Types::DATETIME_IMMUTABLE, nullable: true)] public ?\DateTimeImmutable $minimum = null; /** - * 40 days after the minimum deadline. Optional.\ - * \ * If the Project achieved their minimum budget by the minimum deadline, - * and this deadline is defined, it may still remain in campaign to raise the optimum. + * and this deadline is defined, it may still remain `in_campaign` to raise the optimum. */ #[ORM\Column(type: Types::DATETIME_IMMUTABLE, nullable: true)] public ?\DateTimeImmutable $optimum = null;