WIP: Extend and improve profile editing

This commit is contained in:
Björn Fromme
2023-10-01 16:39:32 +02:00
parent 6595fbec8a
commit d776d37cd5
27 changed files with 553 additions and 375 deletions
-28
View File
@@ -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>
*/