protected function updateBelongsToRelation($eloquentModel, $name, $action)
    {
        if ($action == 'insert' || $action == 'update') {
            $eloquentModel->{$name}()->associate($eloquentModel->getRelation($name));
        }
    }