Newscoop\NewscoopBundle\Entity\Repository\TopicRepository::getTopicsQuery PHP Метод

getTopicsQuery() публичный Метод

public getTopicsQuery ( $direction = 'ASC' )
    public function getTopicsQuery($direction = 'ASC')
    {
        $meta = $this->getClassMetadata();
        $config = $this->listener->getConfiguration($this->_em, $meta->name);
        return $this->getQueryBuilder()->select('node')->from($config['useObjectClass'], 'node')->orderBy('node.root, node.lft', $direction)->getQuery();
    }