Php cs fixes and phpstan

This commit is contained in:
2024-10-22 15:56:41 +02:00
parent 73b0dd6009
commit f1844ae02b
5 changed files with 26 additions and 12 deletions

View File

@@ -34,4 +34,14 @@ class GenderRepository extends ServiceEntityRepository
->getQuery()
->getResult();
}
public function findByGenderTranslation($gender): array
{
return $this->createQueryBuilder('g')
->select('g')
->where('g.genderTranslation = :gender')
->setParameter('gender', $gender)
->getQuery()
->getResult();
}
}