protected function afterSave() { Yii::app()->jobQueue->resolveToAddJobTypeByModelByDateTimeAttribute($this, 'processDateTime', 'AutoresponderQueueMessagesInOutbox'); parent::afterSave(); $this->originalAttributeValues = array(); $this->isNewModel = false; //reset. }