mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
DX: type-hing oneToMany and ManyToMany properties as collection
This commit is contained in:
@@ -69,7 +69,7 @@ class RecurringTask extends AbstractTask
|
||||
private $occurenceWarningInterval;
|
||||
|
||||
/**
|
||||
* @var Collection
|
||||
* @var Collection<SingleTask>
|
||||
*
|
||||
* @ORM\OneToMany(
|
||||
* targetEntity="SingleTask",
|
||||
|
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\TaskBundle\Entity;
|
||||
|
||||
use Chill\TaskBundle\Entity\Task\SingleTaskPlaceEvent;
|
||||
use DateInterval;
|
||||
use DateTime;
|
||||
use DateTimeImmutable;
|
||||
@@ -92,14 +93,14 @@ class SingleTask extends AbstractTask
|
||||
private $startDate;
|
||||
|
||||
/**
|
||||
* @var \Doctrine\Common\Collections\Collection
|
||||
* @var Collection<SingleTaskPlaceEvent>
|
||||
* @ORM\OneToMany(
|
||||
* targetEntity="\Chill\TaskBundle\Entity\Task\SingleTaskPlaceEvent",
|
||||
* mappedBy="task",
|
||||
* cascade={ "remove" }
|
||||
* )
|
||||
*/
|
||||
private $taskPlaceEvents;
|
||||
private Collection $taskPlaceEvents;
|
||||
|
||||
/**
|
||||
* @var DateInterval
|
||||
|
Reference in New Issue
Block a user