func (o *Color) PollsFactorsPositions(mods ...qm.QueryMod) pollsFactorsPositionQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}

	queryMods = append(queryMods,
		qm.Where("\"polls_factors_positions\".\"color_id\"=?", o.ColorID),
	)

	query := PollsFactorsPositions(queryMods...)
	queries.SetFrom(query.Query, "\"polls_factors_positions\"")

	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"polls_factors_positions\".*"})
	}

	return query
}
// PollsFactorsPositions retrieves all the polls_factors_position's PollsFactorsPositions with an executor.
PollsFactorsPositions retrieves all the polls_factors_position's PollsFactorsPositions with an executor.
// PollsFactorsPositions retrieves all the polls_factors_position ' s PollsFactorsPositions with an executor .
func (o *Color) PollsFactorsPositions(mods ...qm.QueryMod) pollsFactorsPositionQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("\"polls_factors_positions\".\"color_id\"=?", o.ColorID),
	)
	query := PollsFactorsPositions(queryMods...)
	queries.SetFrom(query.Query, "\"polls_factors_positions\"")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"polls_factors_positions\".*"})
	}
	return query
}
func ( o * Color ) PollsFactorsPositions ( mods ... qm . QueryMod ) pollsFactorsPositionQuery { var queryMods [ ] qm . QueryMod if len ( mods ) != 0 { queryMods = append ( queryMods , mods ... ) } queryMods = append ( queryMods , qm . Where ( " \" \" \" \" " , o . ColorID ) , ) query := PollsFactorsPositions ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) if len ( queries . GetSelect ( query . Query ) ) == 0 { queries . SetSelect ( query . Query , [ ] string { " \" \" " } ) } return query }
PollsFactorsPositions retrieves all the polls_factors_position's PollsFactorsPositions with an executor.
PollsFactorsPositions retrieves all the polls_factors_position ' s PollsFactorsPositions with an executor .