func (o *Emoji) RemovePollsFactorsPositions(ctx context.Context, exec boil.ContextExecutor, related ...*PollsFactorsPosition) error {
	var err error
	for _, rel := range related {
		queries.SetScanner(&rel.EmojiID, nil)
		if rel.R != nil {
			rel.R.Emoji = nil
		}
		if _, err = rel.Update(ctx, exec, boil.Whitelist("emoji_id")); err != nil {
			return err
		}
	}
	if o.R == nil {
		return nil
	}

	for _, rel := range related {
		for i, ri := range o.R.PollsFactorsPositions {
			if rel != ri {
				continue
			}

			ln := len(o.R.PollsFactorsPositions)
			if ln > 1 && i < ln-1 {
				o.R.PollsFactorsPositions[i] = o.R.PollsFactorsPositions[ln-1]
			}
			o.R.PollsFactorsPositions = o.R.PollsFactorsPositions[:ln-1]
			break
		}
	}

	return nil
}
// RemovePollsFactorsPositions relationships from objects passed in.
// Removes related items from R.PollsFactorsPositions (uses pointer comparison, removal does not keep order)
// Sets related.R.Emoji.
RemovePollsFactorsPositions relationships from objects passed in.
Removes related items from R.PollsFactorsPositions (uses pointer comparison, removal does not keep order)
Sets related.R.Emoji.
// RemovePollsFactorsPositions relationships from objects passed in . // Removes related items from R . PollsFactorsPositions ( uses pointer comparison removal does not keep order ) // Sets related . R . Emoji .
func (o *Emoji) RemovePollsFactorsPositions(ctx context.Context, exec boil.ContextExecutor, related ...*PollsFactorsPosition) error {
	var err error
	for _, rel := range related {
		queries.SetScanner(&rel.EmojiID, nil)
		if rel.R != nil {
			rel.R.Emoji = nil
		}
		if _, err = rel.Update(ctx, exec, boil.Whitelist("emoji_id")); err != nil {
			return err
		}
	}
	if o.R == nil {
		return nil
	}
	for _, rel := range related {
		for i, ri := range o.R.PollsFactorsPositions {
			if rel != ri {
				continue
			}
			ln := len(o.R.PollsFactorsPositions)
			if ln > 1 && i < ln-1 {
				o.R.PollsFactorsPositions[i] = o.R.PollsFactorsPositions[ln-1]
			}
			o.R.PollsFactorsPositions = o.R.PollsFactorsPositions[:ln-1]
			break
		}
	}
	return nil
}
func ( o * Emoji ) RemovePollsFactorsPositions ( ctx context . Context , exec boil . ContextExecutor , related ... * PollsFactorsPosition ) error { var err error for _ , rel := range related { queries . SetScanner ( & rel . EmojiID , nil ) if rel . R != nil { rel . R . Emoji = nil } if _ , err = rel . Update ( ctx , exec , boil . Whitelist ( " " ) ) ; err != nil { return err } } if o . R == nil { return nil } for _ , rel := range related { for i , ri := range o . R . PollsFactorsPositions { if rel != ri { continue } ln := len ( o . R . PollsFactorsPositions ) if ln > 1 && i < ln - 1 { o . R . PollsFactorsPositions [ i ] = o . R . PollsFactorsPositions [ ln - 1 ] } o . R . PollsFactorsPositions = o . R . PollsFactorsPositions [ : ln - 1 ] break } } return nil }
RemovePollsFactorsPositions relationships from objects passed in.
RemovePollsFactorsPositions relationships from objects passed in .