public function afterSave($insert, $changedAttributes) { parent::afterSave($insert, $changedAttributes); Tag::removeUnusedTags(); }