func (o *UserPersonalInfo) PersonType(mods ...qm.QueryMod) personTypeQuery {
	queryMods := []qm.QueryMod{
		qm.Where("person_type_id=?", o.PersonTypeID),
	}

	queryMods = append(queryMods, mods...)

	query := PersonTypes(queryMods...)
	queries.SetFrom(query.Query, "\"person_type\"")

	return query
}
// PersonType pointed to by the foreign key.
PersonType pointed to by the foreign key.
// PersonType pointed to by the foreign key .
func (o *UserPersonalInfo) PersonType(mods ...qm.QueryMod) personTypeQuery {
	queryMods := []qm.QueryMod{
		qm.Where("person_type_id=?", o.PersonTypeID),
	}
	queryMods = append(queryMods, mods...)
	query := PersonTypes(queryMods...)
	queries.SetFrom(query.Query, "\"person_type\"")
	return query
}
func ( o * UserPersonalInfo ) PersonType ( mods ... qm . QueryMod ) personTypeQuery { queryMods := [ ] qm . QueryMod { qm . Where ( " " , o . PersonTypeID ) , } queryMods = append ( queryMods , mods ... ) query := PersonTypes ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) return query }
PersonType pointed to by the foreign key.
PersonType pointed to by the foreign key .