To override this method, you need to subclass Zend_Db_Table_Abstract. For example:
<?php
abstract class My_Db_Table_Abstract extends Zend_Db_Table_Abstract
{
...
public function fetchAll($where, $order)
{
...
}
...
}
Then make sure your models extend My_Db_Table_Abstract. This way you always inherit your overridden fetchAll method.
source
share