public function andStateIsIn($states)
    {
        $suffix = $this->getSuffix();
        return $this->andWhere($this->getAlias().'._state IN (:states'.$suffix.')')
                        ->setParameter('states'.$suffix, (array) $states);
    }
public function andStateIsIn($states)
    {
        $suffix = $this->getSuffix();
        return $this->andWhere($this->getAlias().'._state IN (:states'.$suffix.')')
                        ->setParameter('states'.$suffix, (array) $states);
    }
public function andStateIsIn ( $ states ) { $ suffix = $ this -> getSuffix ( ) ; return $ this -> andWhere ( $ this -> getAlias ( ) . '._state IN (:states' . $ suffix . ')' ) -> setParameter ( 'states' . $ suffix , ( array ) $ states ) ; }
Add query part to select page having specific states.

@param  integer|integer[]    $states             One or several states to test.

@return PageQueryBuilder
Add query part to select page having specific states .