<?php
$qb = $this->createQueryBuilder('u');
return $qb
->where('...')
->andWhere($qb->expr()->in('u.id', $id_list))
->setParameter(...)
->getQuery()
->getResult();
More than 5 years have passed since last update.
DoctrineでIN句に配列渡す方法。
Last updated at Posted at 2012-03-16
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme