/** * Wrapped so we can hook notifications */ function update($notify = true, $event = false) { if ($notify) { $this->notify('update', $event); } return parent::update(); }