public function findByIds($ids)
    {
        $query = $this->createQueryBuilder('m')
            ->where('m.id IN (:ids)')
            ->andWhere('m.status = :status')
            ->setParameters(array(
                'ids' => $ids,
                'status' => 1,
            ))
            ->getQuery()
        ;

        return $query->getResult();
    }
public function findByIds($ids)
    {
        $query = $this->createQueryBuilder('m')
            ->where('m.id IN (:ids)')
            ->andWhere('m.status = :status')
            ->setParameters(array(
                'ids' => $ids,
                'status' => 1,
            ))
            ->getQuery()
        ;

        return $query->getResult();
    }
public function findByIds ( $ ids ) { $ query = $ this -> createQueryBuilder ( 'm' ) -> where ( 'm.id IN (:ids)' ) -> andWhere ( 'm.status = :status' ) -> setParameters ( array ( 'ids' => $ ids , 'status' => 1 , ) ) -> getQuery ( ) ; return $ query -> getResult ( ) ; }
Find all media items by an array of ids.

@param array $ids

@return array
Find all media items by an array of ids .