func (o *Timezone) States(mods ...qm.QueryMod) stateQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}

	queryMods = append(queryMods,
		qm.Where("\"state\".\"timezone_id\"=?", o.TimezoneID),
	)

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

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

	return query
}
// States retrieves all the state's States with an executor.
States retrieves all the state's States with an executor.
// States retrieves all the state ' s States with an executor .
func (o *Timezone) States(mods ...qm.QueryMod) stateQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("\"state\".\"timezone_id\"=?", o.TimezoneID),
	)
	query := States(queryMods...)
	queries.SetFrom(query.Query, "\"state\"")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"state\".*"})
	}
	return query
}
func ( o * Timezone ) States ( mods ... qm . QueryMod ) stateQuery { var queryMods [ ] qm . QueryMod if len ( mods ) != 0 { queryMods = append ( queryMods , mods ... ) } queryMods = append ( queryMods , qm . Where ( " \" \" \" \" " , o . TimezoneID ) , ) query := States ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) if len ( queries . GetSelect ( query . Query ) ) == 0 { queries . SetSelect ( query . Query , [ ] string { " \" \" " } ) } return query }
States retrieves all the state's States with an executor.
States retrieves all the state ' s States with an executor .