if($curr->find(true)){
$o = clone($curr);
}
- print_R($curr);exit;
+
$curr->setFrom(array(
'rate' => $rate,
'from' => date('Y-m-d H:i:s', strtotime($fromDate)),
(empty($o)) ? $curr->insert() : $curr->update($o);
- $this->jok("DONE");
}
$this->jok("DONE");