protected function initEntityEvents()
    {
        $this->on(static::EVENT_INIT, [$this, 'onInitCache']);
        $this->attachInitGUIDEvent(static::$eventNewRecordCreated);
        $this->attachInitIDEvent(static::$eventNewRecordCreated);
        $this->attachInitIPEvent(static::$eventNewRecordCreated);
        if ($this->isNewRecord) {
            $this->trigger(static::$eventNewRecordCreated);
        }
        $this->on(static::EVENT_AFTER_FIND, [$this, 'onRemoveExpired']);
    }
protected function initEntityEvents()
    {
        $this->on(static::EVENT_INIT, [$this, 'onInitCache']);
        $this->attachInitGUIDEvent(static::$eventNewRecordCreated);
        $this->attachInitIDEvent(static::$eventNewRecordCreated);
        $this->attachInitIPEvent(static::$eventNewRecordCreated);
        if ($this->isNewRecord) {
            $this->trigger(static::$eventNewRecordCreated);
        }
        $this->on(static::EVENT_AFTER_FIND, [$this, 'onRemoveExpired']);
    }
protected function initEntityEvents ( ) { $ this -> on ( static :: EVENT_INIT , [ $ this , 'onInitCache' ] ) ; $ this -> attachInitGUIDEvent ( static :: $ eventNewRecordCreated ) ; $ this -> attachInitIDEvent ( static :: $ eventNewRecordCreated ) ; $ this -> attachInitIPEvent ( static :: $ eventNewRecordCreated ) ; if ( $ this -> isNewRecord ) { $ this -> trigger ( static :: $ eventNewRecordCreated ) ; } $ this -> on ( static :: EVENT_AFTER_FIND , [ $ this , 'onRemoveExpired' ] ) ; }
Attach events associated with entity model.
Attach events associated with entity model .