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