WIP: Extend and improve profile editing
This commit is contained in:
@@ -46,9 +46,6 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
#[ORM\ManyToOne]
|
||||
private ?User $owner = null;
|
||||
|
||||
#[ORM\ManyToMany(targetEntity: Pickup::class)]
|
||||
private Collection $pickups;
|
||||
|
||||
#[ORM\ManyToMany(targetEntity: Fee::class)]
|
||||
private Collection $fees;
|
||||
|
||||
@@ -64,7 +61,6 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
public function __construct()
|
||||
{
|
||||
$this->uuid = Uuid::v4();
|
||||
$this->pickups = new ArrayCollection();
|
||||
$this->fees = new ArrayCollection();
|
||||
$this->applications = new ArrayCollection();
|
||||
$this->dispositions = new ArrayCollection();
|
||||
@@ -165,30 +161,6 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection<int, Pickup>
|
||||
*/
|
||||
public function getPickups(): Collection
|
||||
{
|
||||
return $this->pickups;
|
||||
}
|
||||
|
||||
public function addPickup(Pickup $pickup): static
|
||||
{
|
||||
if (!$this->pickups->contains($pickup)) {
|
||||
$this->pickups->add($pickup);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function removePickup(Pickup $pickup): static
|
||||
{
|
||||
$this->pickups->removeElement($pickup);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection<int, Fee>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user