func (o *Factor) ParentFactorFactors(mods ...qm.QueryMod) factorQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}

	queryMods = append(queryMods,
		qm.Where("\"factors\".\"parent_factor_id\"=?", o.FactorID),
	)

	query := Factors(queryMods...)
	queries.SetFrom(query.Query, "\"factors\"")

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

	return query
}
// ParentFactorFactors retrieves all the factor's Factors with an executor via parent_factor_id column.
ParentFactorFactors retrieves all the factor's Factors with an executor via parent_factor_id column.
// ParentFactorFactors retrieves all the factor ' s Factors with an executor via parent_factor_id column .
func (o *Factor) ParentFactorFactors(mods ...qm.QueryMod) factorQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("\"factors\".\"parent_factor_id\"=?", o.FactorID),
	)
	query := Factors(queryMods...)
	queries.SetFrom(query.Query, "\"factors\"")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"factors\".*"})
	}
	return query
}
func ( o * Factor ) ParentFactorFactors ( mods ... qm . QueryMod ) factorQuery { var queryMods [ ] qm . QueryMod if len ( mods ) != 0 { queryMods = append ( queryMods , mods ... ) } queryMods = append ( queryMods , qm . Where ( " \" \" \" \" " , o . FactorID ) , ) query := Factors ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) if len ( queries . GetSelect ( query . Query ) ) == 0 { queries . SetSelect ( query . Query , [ ] string { " \" \" " } ) } return query }
ParentFactorFactors retrieves all the factor's Factors with an executor via parent_factor_id column.
ParentFactorFactors retrieves all the factor ' s Factors with an executor via parent_factor_id column .