fix: avoid query issue caused by empty placeholder value
This commit is contained in:
1 parent
475cc9f0d8
commit
f872fd25ae
1 file changed
+4
-1
@@ -345,13 +345,16 @@ class AssignmentRepository extends ServiceEntityRepository
|
||||
$qb->expr()->in('assignment.jobProfile', ':jobProfiles'),
|
||||
$qb->expr()->isNull('application'),
|
||||
$qb->expr()->isNull('disposition'),
|
||||
$qb->expr()->in('assignment.id', $availableAssignmentsIds)
|
||||
))
|
||||
->setParameter('staffingStatus', Assignment::STATUS_STAFFED)
|
||||
->setParameter('jobProfiles', $teamer->getJobProfiles())
|
||||
->setParameter('teamer', $teamer)
|
||||
;
|
||||
|
||||
if ([] !== $availableAssignmentsIds) {
|
||||
$qb->andWhere($qb->expr()->in('assignment.id', $availableAssignmentsIds));
|
||||
}
|
||||
|
||||
if (0 === $teamer->getTrainingAttendances()->count() && 0 === $teamer->getLicenses()->count()) {
|
||||
$qb
|
||||
->andWhere($qb->expr()->eq('job_profile.requiredLicenses', ':requiredLicenses'))
|
||||
|
||||
Reference in new issue
Block a user