func (o *EthnicGroupCountry) EthnicGroup(mods ...qm.QueryMod) ethnicGroupQuery {
	queryMods := []qm.QueryMod{
		qm.Where("ethnic_group_id=?", o.EthnicGroupID),
	}

	queryMods = append(queryMods, mods...)

	query := EthnicGroups(queryMods...)
	queries.SetFrom(query.Query, "\"ethnic_group\"")

	return query
}
// EthnicGroup pointed to by the foreign key.
EthnicGroup pointed to by the foreign key.
// EthnicGroup pointed to by the foreign key .
func (o *EthnicGroupCountry) EthnicGroup(mods ...qm.QueryMod) ethnicGroupQuery {
	queryMods := []qm.QueryMod{
		qm.Where("ethnic_group_id=?", o.EthnicGroupID),
	}
	queryMods = append(queryMods, mods...)
	query := EthnicGroups(queryMods...)
	queries.SetFrom(query.Query, "\"ethnic_group\"")
	return query
}
func ( o * EthnicGroupCountry ) EthnicGroup ( mods ... qm . QueryMod ) ethnicGroupQuery { queryMods := [ ] qm . QueryMod { qm . Where ( " " , o . EthnicGroupID ) , } queryMods = append ( queryMods , mods ... ) query := EthnicGroups ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) return query }
EthnicGroup pointed to by the foreign key.
EthnicGroup pointed to by the foreign key .