public function fetchAll() { $resultSet = $this->getDbTable()->fetchAll(); $entries = array(); foreach ($resultSet as $row) { $entry = new App_Model_User(); $entry->setCredibility($row->credibility)->setIsActive($row->is_active)->setRoleId($row->role_id)->setEmail($row->email)->setUsername($row->username)->setToken($row->token)->setId($row->id); $entries[] = $entry; } return $entries; }