/** * Insert or update * * @access public * @param array $data * @return boolean */ public function save(array $data) { return $this->condition->hasCondition() ? $this->update($data) : $this->insert($data); }