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

	queryMods = append(queryMods,
		qm.Where("\"factor_positions\".\"factor_id\"=?", o.FactorID),
	)

	query := FactorPositions(queryMods...)
	queries.SetFrom(query.Query, "\"factor_positions\"")

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

	return query
}
// FactorPositions retrieves all the factor_position's FactorPositions with an executor.
FactorPositions retrieves all the factor_position's FactorPositions with an executor.
// FactorPositions retrieves all the factor_position ' s FactorPositions with an executor .
func (o *Factor) FactorPositions(mods ...qm.QueryMod) factorPositionQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("\"factor_positions\".\"factor_id\"=?", o.FactorID),
	)
	query := FactorPositions(queryMods...)
	queries.SetFrom(query.Query, "\"factor_positions\"")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"factor_positions\".*"})
	}
	return query
}
func ( o * Factor ) FactorPositions ( mods ... qm . QueryMod ) factorPositionQuery { var queryMods [ ] qm . QueryMod if len ( mods ) != 0 { queryMods = append ( queryMods , mods ... ) } queryMods = append ( queryMods , qm . Where ( " \" \" \" \" " , o . FactorID ) , ) query := FactorPositions ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) if len ( queries . GetSelect ( query . Query ) ) == 0 { queries . SetSelect ( query . Query , [ ] string { " \" \" " } ) } return query }
FactorPositions retrieves all the factor_position's FactorPositions with an executor.
FactorPositions retrieves all the factor_position ' s FactorPositions with an executor .