public function deleteViaIds($ids)
    {
        return !$ids ||
        \Yii::$app->db->createCommand()->delete(
            $this->viaTable,
            array_merge($this->condition, [reset($this->relationAttribute) => $ids])
        )->execute();
    }