public function events()
    {
        $events = [];

        if ($this->typecastAfterValidate) {
            $events[Model::EVENT_AFTER_VALIDATE] = 'afterValidate';
        }
        if ($this->typecastBeforeSave) {
            $events[BaseActiveRecord::EVENT_BEFORE_INSERT] = 'beforeSave';
            $events[BaseActiveRecord::EVENT_BEFORE_UPDATE] = 'beforeSave';
        }
        if ($this->typecastAfterSave) {
            $events[BaseActiveRecord::EVENT_AFTER_INSERT] = 'afterSave';
            $events[BaseActiveRecord::EVENT_AFTER_UPDATE] = 'afterSave';
        }
        if ($this->typecastAfterFind) {
            $events[BaseActiveRecord::EVENT_AFTER_FIND] = 'afterFind';
        }

        return $events;
    }
public function events()
    {
        $events = [];

        if ($this->typecastAfterValidate) {
            $events[Model::EVENT_AFTER_VALIDATE] = 'afterValidate';
        }
        if ($this->typecastBeforeSave) {
            $events[BaseActiveRecord::EVENT_BEFORE_INSERT] = 'beforeSave';
            $events[BaseActiveRecord::EVENT_BEFORE_UPDATE] = 'beforeSave';
        }
        if ($this->typecastAfterSave) {
            $events[BaseActiveRecord::EVENT_AFTER_INSERT] = 'afterSave';
            $events[BaseActiveRecord::EVENT_AFTER_UPDATE] = 'afterSave';
        }
        if ($this->typecastAfterFind) {
            $events[BaseActiveRecord::EVENT_AFTER_FIND] = 'afterFind';
        }

        return $events;
    }
public function events ( ) { $ events = [ ] ; if ( $ this -> typecastAfterValidate ) { $ events [ Model :: EVENT_AFTER_VALIDATE ] = 'afterValidate' ; } if ( $ this -> typecastBeforeSave ) { $ events [ BaseActiveRecord :: EVENT_BEFORE_INSERT ] = 'beforeSave' ; $ events [ BaseActiveRecord :: EVENT_BEFORE_UPDATE ] = 'beforeSave' ; } if ( $ this -> typecastAfterSave ) { $ events [ BaseActiveRecord :: EVENT_AFTER_INSERT ] = 'afterSave' ; $ events [ BaseActiveRecord :: EVENT_AFTER_UPDATE ] = 'afterSave' ; } if ( $ this -> typecastAfterFind ) { $ events [ BaseActiveRecord :: EVENT_AFTER_FIND ] = 'afterFind' ; } return $ events ; }
{@inheritdoc}
{