func (o *PollsFactorsPosition) YPollFactorPositionVotes(mods ...qm.QueryMod) voteQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}

	queryMods = append(queryMods,
		qm.Where("\"vote\".\"y_poll_factor_position_id\"=?", o.PollFactorPositionID),
	)

	query := Votes(queryMods...)
	queries.SetFrom(query.Query, "\"vote\"")

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

	return query
}
// YPollFactorPositionVotes retrieves all the vote's Votes with an executor via y_poll_factor_position_id column.
YPollFactorPositionVotes retrieves all the vote's Votes with an executor via y_poll_factor_position_id column.
// YPollFactorPositionVotes retrieves all the vote ' s Votes with an executor via y_poll_factor_position_id column .
func (o *PollsFactorsPosition) YPollFactorPositionVotes(mods ...qm.QueryMod) voteQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("\"vote\".\"y_poll_factor_position_id\"=?", o.PollFactorPositionID),
	)
	query := Votes(queryMods...)
	queries.SetFrom(query.Query, "\"vote\"")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"vote\".*"})
	}
	return query
}
func ( o * PollsFactorsPosition ) YPollFactorPositionVotes ( mods ... qm . QueryMod ) voteQuery { var queryMods [ ] qm . QueryMod if len ( mods ) != 0 { queryMods = append ( queryMods , mods ... ) } queryMods = append ( queryMods , qm . Where ( " \" \" \" \" " , o . PollFactorPositionID ) , ) query := Votes ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) if len ( queries . GetSelect ( query . Query ) ) == 0 { queries . SetSelect ( query . Query , [ ] string { " \" \" " } ) } return query }
YPollFactorPositionVotes retrieves all the vote's Votes with an executor via y_poll_factor_position_id column.
YPollFactorPositionVotes retrieves all the vote ' s Votes with an executor via y_poll_factor_position_id column .