|
|
@ -43,10 +43,17 @@ class User implements UserInterface |
|
|
|
#[ORM\OneToMany(targetEntity: Task::class, mappedBy: 'createdBy', orphanRemoval: true)]
|
|
|
|
private Collection $tasks; |
|
|
|
|
|
|
|
/** |
|
|
|
* @var Collection<int, Task> |
|
|
|
*/ |
|
|
|
#[ORM\OneToMany(targetEntity: Task::class, mappedBy: 'lockedBy', orphanRemoval: true)]
|
|
|
|
private Collection $lockedTasks; |
|
|
|
|
|
|
|
public function __construct() |
|
|
|
{ |
|
|
|
$this->projects = new ArrayCollection(); |
|
|
|
$this->tasks = new ArrayCollection(); |
|
|
|
$this->lockedTasks = new ArrayCollection(); |
|
|
|
} |
|
|
|
|
|
|
|
public function getId(): ?int |
|
|
@ -180,4 +187,13 @@ class User implements UserInterface |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return Collection<int, Task> |
|
|
|
*/ |
|
|
|
public function getLockedTasks(): Collection |
|
|
|
{ |
|
|
|
return $this->lockedTasks; |
|
|
|
} |
|
|
|
|
|
|
|
} |