public function fetchAll($where = null, $orderby = null) { $resultSet = $this->getDbTable()->fetchAll($where, $orderby); $entries = array(); $entry = new Default_Model_Company(); foreach ($resultSet as $row) { $entry->getContactPersonId($row['contact_person_id']); $entry->getCompanyId($row['company_id']); $entry->setTitle($row['title']); $entry->setFullName($row['full_name']); $entry->setJobTitle($row['job_title']); $entry->setMobile($row['mobile']); $entry->setEmail($row['email']); $entries[] = $entry; } return $entries; }