func (o *Position) RemoveEmoji(ctx context.Context, exec boil.ContextExecutor, related *Emoji) error {
	var err error

	queries.SetScanner(&o.EmojiID, nil)
	if _, err = o.Update(ctx, exec, boil.Whitelist("emoji_id")); err != nil {
		return errors.Wrap(err, "failed to update local table")
	}

	o.R.Emoji = nil
	if related == nil || related.R == nil {
		return nil
	}

	for i, ri := range related.R.Positions {
		if queries.Equal(o.EmojiID, ri.EmojiID) {
			continue
		}

		ln := len(related.R.Positions)
		if ln > 1 && i < ln-1 {
			related.R.Positions[i] = related.R.Positions[ln-1]
		}
		related.R.Positions = related.R.Positions[:ln-1]
		break
	}
	return nil
}
// RemoveEmoji relationship.
// Sets o.R.Emoji to nil.
// Removes o from all passed in related items' relationships struct (Optional).
RemoveEmoji relationship.
Sets o.R.Emoji to nil.
Removes o from all passed in related items' relationships struct (Optional).
// RemoveEmoji relationship . // Sets o . R . Emoji to nil . // Removes o from all passed in related items ' relationships struct ( Optional ) .
func (o *Position) RemoveEmoji(ctx context.Context, exec boil.ContextExecutor, related *Emoji) error {
	var err error
	queries.SetScanner(&o.EmojiID, nil)
	if _, err = o.Update(ctx, exec, boil.Whitelist("emoji_id")); err != nil {
		return errors.Wrap(err, "failed to update local table")
	}
	o.R.Emoji = nil
	if related == nil || related.R == nil {
		return nil
	}
	for i, ri := range related.R.Positions {
		if queries.Equal(o.EmojiID, ri.EmojiID) {
			continue
		}
		ln := len(related.R.Positions)
		if ln > 1 && i < ln-1 {
			related.R.Positions[i] = related.R.Positions[ln-1]
		}
		related.R.Positions = related.R.Positions[:ln-1]
		break
	}
	return nil
}
func ( o * Position ) RemoveEmoji ( ctx context . Context , exec boil . ContextExecutor , related * Emoji ) error { var err error queries . SetScanner ( & o . EmojiID , nil ) if _ , err = o . Update ( ctx , exec , boil . Whitelist ( " " ) ) ; err != nil { return errors . Wrap ( err , " " ) } o . R . Emoji = nil if related == nil || related . R == nil { return nil } for i , ri := range related . R . Positions { if queries . Equal ( o . EmojiID , ri . EmojiID ) { continue } ln := len ( related . R . Positions ) if ln > 1 && i < ln - 1 { related . R . Positions [ i ] = related . R . Positions [ ln - 1 ] } related . R . Positions = related . R . Positions [ : ln - 1 ] break } return nil }
RemoveEmoji relationship.
RemoveEmoji relationship .