public function createObjectFromData($row) { $file = new File_Model(); $file->setId($row->id); $file->setDocument($row->document); $file->setFileUrl($row->file_url); return $file; }