// GetRelationModels implements mapping.MultiRelationer interface.
GetRelationModels implements mapping.MultiRelationer interface.
// GetRelationModels implements mapping . MultiRelationer interface .
func (b *Blog) GetRelationModels(relation *mapping.StructField) (models []mapping.Model, err error) {
	switch relation.Index[0] {
	case 3: 
		for _, model := range b.Posts {
			models = append(models, model)
		}
	default:
		return nil, errors.Wrapf(mapping.ErrInvalidRelationField, "provided invalid relation: '%s' for model: '%T'", relation, b)
	}
	return models, nil
}
func ( b * Blog ) GetRelationModels ( relation * mapping . StructField ) ( models [ ] mapping . Model , err error ) { switch relation . Index [ 0 ] { case 3 : for _ , model := range b . Posts { models = append ( models , model ) } default : return nil , errors . Wrapf ( mapping . ErrInvalidRelationField , " " , relation , b ) } return models , nil }
GetRelationModels implements mapping.MultiRelationer interface.
GetRelationModels implements mapping . MultiRelationer interface .
// Posts