feat: filter teamers by multiple job profiles

This commit is contained in:
Björn Fromme
2024-07-18 15:09:56 +02:00
parent ebf89d19c3
commit b563bf3059
5 changed files with 19 additions and 16 deletions
+5 -5
View File
@@ -9,7 +9,7 @@ class TeamerFilterDto extends AbstractFilterDto
protected ?string $name = null;
protected ?\DateTimeImmutable $dateFrom = null;
protected ?\DateTimeImmutable $dateTo = null;
protected ?JobProfile $jobProfile = null;
protected array $jobProfiles = [];
protected string $pickupId = '';
protected bool $skiLicense = false;
protected bool $snowboardLicense = false;
@@ -51,14 +51,14 @@ class TeamerFilterDto extends AbstractFilterDto
return $this;
}
public function getJobProfile(): ?JobProfile
public function getJobProfiles(): array
{
return $this->jobProfile;
return $this->jobProfiles;
}
public function setJobProfile(?JobProfile $jobProfile): static
public function setJobProfiles(array $jobProfiles): static
{
$this->jobProfile = $jobProfile;
$this->jobProfiles = $jobProfiles;
return $this;
}