func (o *PollsState) State(mods ...qm.QueryMod) stateQuery {
	queryMods := []qm.QueryMod{
		qm.Where("state_id=?", o.StateID),
	}

	queryMods = append(queryMods, mods...)

	query := States(queryMods...)
	queries.SetFrom(query.Query, "\"state\"")

	return query
}
// State pointed to by the foreign key.
State pointed to by the foreign key.
// State pointed to by the foreign key .
func (o *PollsState) State(mods ...qm.QueryMod) stateQuery {
	queryMods := []qm.QueryMod{
		qm.Where("state_id=?", o.StateID),
	}
	queryMods = append(queryMods, mods...)
	query := States(queryMods...)
	queries.SetFrom(query.Query, "\"state\"")
	return query
}
func ( o * PollsState ) State ( mods ... qm . QueryMod ) stateQuery { queryMods := [ ] qm . QueryMod { qm . Where ( " " , o . StateID ) , } queryMods = append ( queryMods , mods ... ) query := States ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) return query }
State pointed to by the foreign key.
State pointed to by the foreign key .