/** * Adaptador Doctrine para o paginador do Zend * * @param $doctrineQuery * @param $modelName * @param $entityPath */ public function __construct($doctrineQuery, $modelName, $entityPath) { $this->_queryBuilder = $doctrineQuery; $this->_entityPath = $entityPath; $this->_modelName = $modelName; $this->_query = clone $this->_queryBuilder; $this->_query->select('e'); $this->_query->from($this->_entityPath, 'e'); }