// Positions retrieves all the position's Positions with an executor.
Positions retrieves all the position's Positions with an executor.
// Positions retrieves all the position ' s Positions with an executor .
func (o *DesignPattern) Positions(mods ...qm.QueryMod) positionQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("\"positions\".\"design_pattern_id\"=?", o.DesignPatternID),
	)
	query := Positions(queryMods...)
	queries.SetFrom(query.Query, "\"positions\"")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"\"positions\".*"})
	}
	return query
}
func ( o * DesignPattern ) Positions ( mods ... qm . QueryMod ) positionQuery { var queryMods [ ] qm . QueryMod if len ( mods ) != 0 { queryMods = append ( queryMods , mods ... ) } queryMods = append ( queryMods , qm . Where ( " \" \" \" \" " , o . DesignPatternID ) , ) query := Positions ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) if len ( queries . GetSelect ( query . Query ) ) == 0 { queries . SetSelect ( query . Query , [ ] string { " \" \" " } ) } return query }
Positions retrieves all the position's Positions with an executor.
Positions retrieves all the position ' s Positions with an executor .