Skip to content

Commit

Permalink
use named arguments for doctrine backwards compatibility (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
nastia-vinnytska authored Mar 3, 2024
1 parent e632cd9 commit cbb8312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Entity/CronJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CronJob
#[ORM\Column('enabled')]
private ?bool $enabled = null;

#[ORM\OneToMany(CronReport::class, 'job', ['remove'])]
#[ORM\OneToMany(targetEntity: CronReport::class, mappedBy: 'job', cascade: ['remove'])]
protected Collection $reports;

public function __construct()
Expand Down
2 changes: 1 addition & 1 deletion Entity/CronReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CronReport
#[ORM\Column('error', 'text')]
protected ?string $error = null;

#[ORM\ManyToOne(CronJob::class, inversedBy: 'reports')]
#[ORM\ManyToOne(targetEntity: CronJob::class, inversedBy: 'reports')]
#[ORM\JoinColumn(onDelete: 'CASCADE')]
protected ?CronJob $job = null;

Expand Down

0 comments on commit cbb8312

Please sign in to comment.