creocoder\translateable\TranslateableBehavior::afterSave PHP 메소드

afterSave() 공개 메소드

public afterSave ( ) : void
리턴 void
    public function afterSave()
    {
        /* @var ActiveRecord $translation */
        foreach ($this->owner->{$this->translationRelation} as $translation) {
            $this->owner->link($this->translationRelation, $translation);
        }
    }