        /** @var Menu $menuModel */
        $menuModel = $this->menuModel;
        if (!empty($array['delete'])) {
            Yii::$app->getDb()->createCommand()->delete($menuModel::tableName(), ['id' => $array['delete']])
                ->execute();
        }
        if (!empty($array['create'])) {
            Yii::$app->getDb()->createCommand()->batchInsert($menuModel::tableName(), array_keys($array['create'][0]), $array['create'])
                ->execute();
        }
        if (!empty($array['update'])) {