// doBeforeUpsertHooks executes all "before Upsert" hooks.
doBeforeUpsertHooks executes all "before Upsert" hooks.
// doBeforeUpsertHooks executes all " before Upsert " hooks .
func (o *UserAccountEthnicity) doBeforeUpsertHooks(ctx context.Context, exec boil.ContextExecutor) (err error) {
	for _, hook := range userAccountEthnicityBeforeUpsertHooks {
		if err := hook(ctx, exec, o); err != nil {
			return err
		}
	}
	return nil
}
func ( o * UserAccountEthnicity ) doBeforeUpsertHooks ( ctx context . Context , exec boil . ContextExecutor ) ( err error ) { for _ , hook := range userAccountEthnicityBeforeUpsertHooks { if err := hook ( ctx , exec , o ) ; err != nil { return err } } return nil }
doBeforeUpsertHooks executes all "before Upsert" hooks.
doBeforeUpsertHooks executes all " before Upsert " hooks .