class A extends Zend_Db_Table_Abstract
{
protected $_name = 'a';
protected $_primary = 'id';
public function fetchAllPaginator($pageNumber = 1, $itemCountPerPage = 20)
{
$select = $this->select()
->from("$this->_schema.$this->_name", array('id' => 'a.id', 'name' => 'a.name', 'description' => 'a.description'))
->joinLeft('c', "c.a_id = $this->_schema.$this->_name.id", array())
->joinLeft('b', "c.b_id = b.id", array('b_count' => 'COUNT(b.id)'))
->group(array('id' => 'a.id', 'name' => 'a.name', 'description' => 'a.description'))
->order("$order")
->setIntegrityCheck(false);
$paginator = Zend_Paginator::factory($select);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('index/paginator.phtml');
Zend_Paginator::setDefaultScrollingStyle('Sliding');
$paginator->setItemCountPerPage($itemCountPerPage);
$paginator->setPageRange(Zend_Registry::get('configuration')->pagerange);
$paginator->setCurrentPageNumber($pageNumber);
return $paginator;
}
}
Could you try this with the ZF 1.8.0 alpha release and see if this issue still exists?