func (o *Continent) Countries(mods ...qm.QueryMod) countryQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}

	queryMods = append(queryMods,
		qm.Where("\"country\".\"continent_id\"=?", o.ContinentID2),
	)

	query := Countries(queryMods...)
	queries.SetFrom(query.Query, "\"country\"")

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

	return query
}
// Countries retrieves all the country's Countries with an executor.
Countries retrieves all the country's Countries with an executor.
// Countries retrieves all the country ' s Countries with an executor .
func (o *Continent) Countries(mods ...qm.QueryMod) countryQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("\"country\".\"continent_id\"=?", o.ContinentID2),
	)
	query := Countries(queryMods...)
	queries.SetFrom(query.Query, "\"country\"")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"country\".*"})
	}
	return query
}
func ( o * Continent ) Countries ( mods ... qm . QueryMod ) countryQuery { var queryMods [ ] qm . QueryMod if len ( mods ) != 0 { queryMods = append ( queryMods , mods ... ) } queryMods = append ( queryMods , qm . Where ( " \" \" \" \" " , o . ContinentID2 ) , ) query := Countries ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) if len ( queries . GetSelect ( query . Query ) ) == 0 { queries . SetSelect ( query . Query , [ ] string { " \" \" " } ) } return query }
Countries retrieves all the country's Countries with an executor.
Countries retrieves all the country ' s Countries with an executor .