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; } }