public function andStateIsNotIn($states)
    {
        if (false === is_array($states)) {
            $states = array($states);
        }

        $suffix = $this->getSuffix();

        return $this->andWhere($this->getAlias().'._state NOT IN (:states'.$suffix.')')
                        ->setParameter('states'.$suffix, $states);
    }
public function andStateIsNotIn($states)
    {
        if (false === is_array($states)) {
            $states = array($states);
        }

        $suffix = $this->getSuffix();

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

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

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