From e93458f9439a6758822452079397c4d95e9cd434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 12 Dec 2022 21:15:05 +0100 Subject: [PATCH] Fixes: Fix doctrine annotation and repository for CronJobExecution --- src/Bundle/ChillMainBundle/Entity/CronJobExecution.php | 5 ++++- .../Repository/CronJobExecutionRepository.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Entity/CronJobExecution.php b/src/Bundle/ChillMainBundle/Entity/CronJobExecution.php index e0899e21f..0cacffac9 100644 --- a/src/Bundle/ChillMainBundle/Entity/CronJobExecution.php +++ b/src/Bundle/ChillMainBundle/Entity/CronJobExecution.php @@ -32,7 +32,7 @@ class CronJobExecution /** * @var DateTimeImmutable - * @ORM\Column(type="datetime_immutable, nullable=true, options={"default"": null}) + * @ORM\Column(type="datetime_immutable", nullable=true, options={"default": null}) */ private ?DateTimeImmutable $lastEnd = null; @@ -41,6 +41,9 @@ class CronJobExecution */ private DateTimeImmutable $lastStart; + /** + * @ORM\Column(type="integer", nullable=true, options={"default": null}) + */ private ?int $lastStatus = null; public function __construct(string $key) diff --git a/src/Bundle/ChillMainBundle/Repository/CronJobExecutionRepository.php b/src/Bundle/ChillMainBundle/Repository/CronJobExecutionRepository.php index eb0b63724..a3c495d7d 100644 --- a/src/Bundle/ChillMainBundle/Repository/CronJobExecutionRepository.php +++ b/src/Bundle/ChillMainBundle/Repository/CronJobExecutionRepository.php @@ -52,6 +52,6 @@ class CronJobExecutionRepository implements CronJobExecutionRepositoryInterface public function getClassName(): string { - return CronJobExecutionRepository::class; + return CronJobExecution::class; } }