public function afterUpdate()
    {
        /** @var ActiveRecord $owner */
        $owner = $this->owner;

        if ($owner->isRelationPopulated('translations')) {
            $translations = $this->indexByLanguage($owner->getRelatedRecords()['translations']);
            $this->saveTranslations($translations);
        }
    }
public function afterUpdate()
    {
        /** @var ActiveRecord $owner */
        $owner = $this->owner;

        if ($owner->isRelationPopulated('translations')) {
            $translations = $this->indexByLanguage($owner->getRelatedRecords()['translations']);
            $this->saveTranslations($translations);
        }
    }
public function afterUpdate ( ) { /** @var ActiveRecord $owner */ $ owner = $ this -> owner ; if ( $ owner -> isRelationPopulated ( 'translations' ) ) { $ translations = $ this -> indexByLanguage ( $ owner -> getRelatedRecords ( ) [ 'translations' ] ) ; $ this -> saveTranslations ( $ translations ) ; } }
Handle 'afterUpdate' event of the owner.
Handle afterUpdate event of the owner .