Advertisement
eqeqwan21

Untitled

Nov 16th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. public function apply(QueryBuilder $queryBuilder, FilterDataDto $filterDataDto, ?FieldDto $fieldDto, EntityDto $entityDto): void
  2.     {
  3.         $alias = 'device';
  4.         $parameterName = $filterDataDto->getParameterName();
  5.         $countries = $filterDataDto->getValue();
  6.         $queryBuilder
  7.             ->innerJoin('entity.device', $alias)
  8.             ->andWhere("$alias.owner IN (:$parameterName)")
  9.             ->setParameter($parameterName, $countries);
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement