Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function apply(QueryBuilder $queryBuilder, FilterDataDto $filterDataDto, ?FieldDto $fieldDto, EntityDto $entityDto): void
- {
- $alias = 'device';
- $parameterName = $filterDataDto->getParameterName();
- $countries = $filterDataDto->getValue();
- $queryBuilder
- ->innerJoin('entity.device', $alias)
- ->andWhere("$alias.owner IN (:$parameterName)")
- ->setParameter($parameterName, $countries);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement