Exemplo n.º 1
0
func syncToProductionAfterCreate(scope *gorm.Scope) {
	if !scope.HasError() {
		if ok, clone := getModeAndNewScope(scope); ok {
			gorm.Create(clone)
		}
	}
}
Exemplo n.º 2
0
func syncCreateFromProductionToDraft(scope *gorm.Scope) {
	if !scope.HasError() {
		if ok, clone := isProductionModeAndNewScope(scope); ok {
			gorm.Create(clone)
		}
	}
}