Fixes: Fix doctrine annotation and repository for CronJobExecution

This commit is contained in:
Julien Fastré 2022-12-12 21:15:05 +01:00
parent ceee5e7eea
commit e93458f943
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 5 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class CronJobExecution
/** /**
* @var DateTimeImmutable * @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; private ?DateTimeImmutable $lastEnd = null;
@ -41,6 +41,9 @@ class CronJobExecution
*/ */
private DateTimeImmutable $lastStart; private DateTimeImmutable $lastStart;
/**
* @ORM\Column(type="integer", nullable=true, options={"default": null})
*/
private ?int $lastStatus = null; private ?int $lastStatus = null;
public function __construct(string $key) public function __construct(string $key)

View File

@ -52,6 +52,6 @@ class CronJobExecutionRepository implements CronJobExecutionRepositoryInterface
public function getClassName(): string public function getClassName(): string
{ {
return CronJobExecutionRepository::class; return CronJobExecution::class;
} }
} }