func (o *UserAccountEthnicity) EthnicSubgroup(mods ...qm.QueryMod) ethnicSubgroupQuery {
	queryMods := []qm.QueryMod{
		qm.Where("ethnic_subgroup_id=?", o.EthnicSubgroupID),
	}

	queryMods = append(queryMods, mods...)

	query := EthnicSubgroups(queryMods...)
	queries.SetFrom(query.Query, "\"ethnic_subgroup\"")

	return query
}
// EthnicSubgroup pointed to by the foreign key.
EthnicSubgroup pointed to by the foreign key.
// EthnicSubgroup pointed to by the foreign key .
func (o *UserAccountEthnicity) EthnicSubgroup(mods ...qm.QueryMod) ethnicSubgroupQuery {
	queryMods := []qm.QueryMod{
		qm.Where("ethnic_subgroup_id=?", o.EthnicSubgroupID),
	}
	queryMods = append(queryMods, mods...)
	query := EthnicSubgroups(queryMods...)
	queries.SetFrom(query.Query, "\"ethnic_subgroup\"")
	return query
}
func ( o * UserAccountEthnicity ) EthnicSubgroup ( mods ... qm . QueryMod ) ethnicSubgroupQuery { queryMods := [ ] qm . QueryMod { qm . Where ( " " , o . EthnicSubgroupID ) , } queryMods = append ( queryMods , mods ... ) query := EthnicSubgroups ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) return query }
EthnicSubgroup pointed to by the foreign key.
EthnicSubgroup pointed to by the foreign key .