public function getActivityQuery($page, $amount, array $options)
    {
        $qb = $this->createQueryBuilder();
        $qb->select('*')
            ->orderBy('id', 'DESC')
            ->setMaxResults((int) $amount)
            ->setFirstResult((int) (($page - 1) * $amount));

        $this->addWhereActivity($qb, $options);

        return $qb;
    }
public function getActivityQuery($page, $amount, array $options)
    {
        $qb = $this->createQueryBuilder();
        $qb->select('*')
            ->orderBy('id', 'DESC')
            ->setMaxResults((int) $amount)
            ->setFirstResult((int) (($page - 1) * $amount));

        $this->addWhereActivity($qb, $options);

        return $qb;
    }
public function getActivityQuery ( $ page , $ amount , array $ options ) { $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> select ( '*' ) -> orderBy ( 'id' , 'DESC' ) -> setMaxResults ( ( int ) $ amount ) -> setFirstResult ( ( int ) ( ( $ page - 1 ) * $ amount ) ) ; $ this -> addWhereActivity ( $ qb , $ options ) ; return $ qb ; }
Build the query to get the log entries.

@param int   $page
@param int   $amount
@param array $options

@return QueryBuilder
Build the query to get the log entries .