Knp\Bundle\KnpBundlesBundle\Repository\ActivityRepository::deleteIds PHP Method

deleteIds() public method

public deleteIds ( array $ids )
$ids array
    public function deleteIds(array $ids)
    {
        if (empty($ids)) {
            return;
        }
        $qb = $this->_em->createQueryBuilder();
        $qb->delete('KnpBundlesBundle:Activity', 'a')->where($qb->expr()->in('a.id', $ids))->getQuery()->execute();
    }