public function save(Framework_Table_Row $record) { $record->preSave(); $array = $record->toArray(); if (array_key_exists('id', $array) && $array['id'] > 0) { return $this->update($array); } else { return $this->insert($array); } }
public function populate($array) { if (!empty($array['clear-password'])) { $this->setClearPassword($array['clear-password']); unset($array['clear-password']); } parent::populate($array); }