feat: collect teamers' meal preferences
This commit is contained in:
1 parent
e7f3233dbc
commit
15a4af93f9
15 files changed
+427
No files matched your search
@@ -8,6 +8,7 @@ use App\Entity\Embeddable\BankAccount;
|
||||
use App\Entity\Embeddable\Communication;
|
||||
use App\Entity\Traits\SoftDeletableEntity;
|
||||
use App\Entity\Traits\TimestampableEntity;
|
||||
use App\Enum\MealPreference;
|
||||
use App\Repository\TeamerRepository;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
@@ -138,6 +139,10 @@ class Teamer implements TimestampableEntityInterface, SoftDeletableEntityInterfa
|
||||
#[ORM\Column(length: 3, nullable: true)]
|
||||
private ?string $size = null;
|
||||
|
||||
#[ORM\Column(nullable: true, enumType: MealPreference::class)]
|
||||
#[Assert\NotNull(message: 'Bitte gib deine Ernährungsweise an', groups: ['profile', 'profile_preflight'])]
|
||||
private ?MealPreference $mealPreference = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?array $crmSelections = null;
|
||||
|
||||
@@ -923,6 +928,18 @@ class Teamer implements TimestampableEntityInterface, SoftDeletableEntityInterfa
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getMealPreference(): ?MealPreference
|
||||
{
|
||||
return $this->mealPreference;
|
||||
}
|
||||
|
||||
public function setMealPreference(?MealPreference $mealPreference): static
|
||||
{
|
||||
$this->mealPreference = $mealPreference;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCrmSelections(): ?array
|
||||
{
|
||||
return $this->crmSelections;
|
||||
|
||||
Reference in new issue
Block a user