public function andLevelEquals($level, $alias = null)
    {
        list($alias, $suffix) = $this->getAliasAndSuffix($alias);

        return $this->andWhere($alias.'._level = :level'.$suffix)
                        ->setParameter('level'.$suffix, $level);
    }
public function andLevelEquals($level, $alias = null)
    {
        list($alias, $suffix) = $this->getAliasAndSuffix($alias);

        return $this->andWhere($alias.'._level = :level'.$suffix)
                        ->setParameter('level'.$suffix, $level);
    }
public function andLevelEquals ( $ level , $ alias = null ) { list ( $ alias , $ suffix ) = $ this -> getAliasAndSuffix ( $ alias ) ; return $ this -> andWhere ( $ alias . '._level = :level' . $ suffix ) -> setParameter ( 'level' . $ suffix , $ level ) ; }
Add query part to select nodes by level.

@param int    $level
@param string $alias optional, the alias to use

@return \BackBee\NestedNode\Repository\NestedNodeQueryBuilder
Add query part to select nodes by level .