public function createObjectFromData($row) { $notification = new Notification_Model(); $notification->setId($row->id); $notification->setCreator($row->creator); $notification->setReceiver($row->receiver); $notification->setObject($row->object); $notification->setStatus($row->status); $notification->setType($row->type); $notification->setDateCreated($this->formatDate($row->dateCreated)); $notification->setDocumentRefNo($row->documentRefNo); return $notification; }