concrete/src/Page/PageList.php
public function filterByNumberOfChildren($number, $comparison = '>')
    {
        $number = intval($number);
        if ($this->includeAliases) {
            $this->query->andWhere(
                $this->query->expr()->orX(
                    $this->query->expr()->comparison('p.cChildren', $comparison, ':cChildren'),
                    $this->query->expr()->comparison('pa.cChildren', $comparison, ':cChildren')
                )
            );
        } else {
            $this->query->andWhere($this->query->expr()->comparison('p.cChildren', $comparison, ':cChildren'));
        }
        $this->query->setParameter('cChildren', $number);
    }
public function filterByNumberOfChildren($number, $comparison = '>')
    {
        $number = intval($number);
        if ($this->includeAliases) {
            $this->query->andWhere(
                $this->query->expr()->orX(
                    $this->query->expr()->comparison('p.cChildren', $comparison, ':cChildren'),
                    $this->query->expr()->comparison('pa.cChildren', $comparison, ':cChildren')
                )
            );
        } else {
            $this->query->andWhere($this->query->expr()->comparison('p.cChildren', $comparison, ':cChildren'));
        }
        $this->query->setParameter('cChildren', $number);
    }
public function filterByNumberOfChildren ( $ number , $ comparison = '>' ) { $ number = intval ( $ number ) ; if ( $ this -> includeAliases ) { $ this -> query -> andWhere ( $ this -> query -> expr ( ) -> orX ( $ this -> query -> expr ( ) -> comparison ( 'p.cChildren' , $ comparison , ':cChildren' ) , $ this -> query -> expr ( ) -> comparison ( 'pa.cChildren' , $ comparison , ':cChildren' ) ) ) ; } else { $ this -> query -> andWhere ( $ this -> query -> expr ( ) -> comparison ( 'p.cChildren' , $ comparison , ':cChildren' ) ) ; } $ this -> query -> setParameter ( 'cChildren' , $ number ) ; }
Filter by number of children.

@param $number
@param string $comparison
Filter by number of children .