protected function onAfterWrite() { parent::onAfterWrite(); if ($this->willFail) { user_error('Modifier failure!'); } }