func (o *PollsTown) Town(mods ...qm.QueryMod) townQuery {
	queryMods := []qm.QueryMod{
		qm.Where("town_id=?", o.TownID),
	}

	queryMods = append(queryMods, mods...)

	query := Towns(queryMods...)
	queries.SetFrom(query.Query, "\"town\"")

	return query
}
// Town pointed to by the foreign key.
Town pointed to by the foreign key.
// Town pointed to by the foreign key .
func (o *PollsTown) Town(mods ...qm.QueryMod) townQuery {
	queryMods := []qm.QueryMod{
		qm.Where("town_id=?", o.TownID),
	}
	queryMods = append(queryMods, mods...)
	query := Towns(queryMods...)
	queries.SetFrom(query.Query, "\"town\"")
	return query
}
func ( o * PollsTown ) Town ( mods ... qm . QueryMod ) townQuery { queryMods := [ ] qm . QueryMod { qm . Where ( " " , o . TownID ) , } queryMods = append ( queryMods , mods ... ) query := Towns ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) return query }
Town pointed to by the foreign key.
Town pointed to by the foreign key .