private function update() { $this->beforeUpdate(); $ok = (bool) DB::update($this->table, $this->getIdCondition(), $this->data); return $ok ? $this->afterUpdate() : false; }
private function update() { $this->beforeUpdate(); $ok = (bool) DB::update($this->table, $this->getIdCondition(), $this->data); return $ok ? $this->afterUpdate() : false; }