func (o *County) PollsCounties(mods ...qm.QueryMod) pollsCountyQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}

	queryMods = append(queryMods,
		qm.Where("\"polls_county\".\"county_id\"=?", o.CountyID),
	)

	query := PollsCounties(queryMods...)
	queries.SetFrom(query.Query, "\"polls_county\"")

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

	return query
}
// PollsCounties retrieves all the polls_county's PollsCounties with an executor.
PollsCounties retrieves all the polls_county's PollsCounties with an executor.
// PollsCounties retrieves all the polls_county ' s PollsCounties with an executor .
func (o *County) PollsCounties(mods ...qm.QueryMod) pollsCountyQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("\"polls_county\".\"county_id\"=?", o.CountyID),
	)
	query := PollsCounties(queryMods...)
	queries.SetFrom(query.Query, "\"polls_county\"")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"polls_county\".*"})
	}
	return query
}
func ( o * County ) PollsCounties ( mods ... qm . QueryMod ) pollsCountyQuery { var queryMods [ ] qm . QueryMod if len ( mods ) != 0 { queryMods = append ( queryMods , mods ... ) } queryMods = append ( queryMods , qm . Where ( " \" \" \" \" " , o . CountyID ) , ) query := PollsCounties ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) if len ( queries . GetSelect ( query . Query ) ) == 0 { queries . SetSelect ( query . Query , [ ] string { " \" \" " } ) } return query }
PollsCounties retrieves all the polls_county's PollsCounties with an executor.
PollsCounties retrieves all the polls_county ' s PollsCounties with an executor .