// Find returns all Post models that matches to given query.
Find returns all Post models that matches to given query.
// Find returns all Post models that matches to given query .
func (p *postsQueryBuilder) Find() ([]*Post, error) {
	if p.err != nil {
		return nil, p.err
	}
	queryModels, err := p.builder.Find()
	if err != nil {
		return nil, err
	}
	models := make([]*Post, len(queryModels))
	for i := range queryModels {
		models[i] = queryModels[i].(*Post)
	}
	return models, nil
}
func ( p * postsQueryBuilder ) Find ( ) ( [ ] * Post , error ) { if p . err != nil { return nil , p . err } queryModels , err := p . builder . Find ( ) if err != nil { return nil , err } models := make ( [ ] * Post , len ( queryModels ) ) for i := range queryModels { models [ i ] = queryModels [ i ] . ( * Post ) } return models , nil }
Find returns all Post models that matches to given query.
Find returns all Post models that matches to given query .