feat: automatic assignment of matching job profiles when adding license
This commit is contained in:
1 parent
de5117c200
commit
2ff4b7d007
2 files changed
+33
No files matched your search
@@ -34,4 +34,17 @@ class JobProfileRepository extends ServiceEntityRepository
|
||||
->getResult()
|
||||
;
|
||||
}
|
||||
|
||||
public function findByLicenseType(string $licenseType): array
|
||||
{
|
||||
$qb = $this->createQueryBuilder('job_profile');
|
||||
|
||||
return $qb
|
||||
->where($qb->expr()->like('job_profile.requiredLicenses', ':licenseType'))
|
||||
->orderBy('job_profile.name', 'ASC')
|
||||
->setParameter('licenseType', '%'.$licenseType.'%')
|
||||
->getQuery()
|
||||
->getResult()
|
||||
;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user