func (b *Blog) AddRelationModel(relation *mapping.StructField, model mapping.Model) error {
	switch relation.Index[0] {
	case 3: // Posts
		post, ok := model.(*Post)
		if !ok {
			return errors.Wrapf(mapping.ErrInvalidRelationValue, "provided invalid value type: '%T'  for the field: 'Posts'", model)
		}
		b.Posts = append(b.Posts, post)
	default:
		return errors.Wrapf(mapping.ErrInvalidRelationField, "provided invalid relation: '%T' for the model 'Blog'", model)
	}
	return nil
}
// AddRelationModel implements mapping.MultiRelationer interface.
AddRelationModel implements mapping.MultiRelationer interface.
// AddRelationModel implements mapping . MultiRelationer interface .
func (b *Blog) AddRelationModel(relation *mapping.StructField, model mapping.Model) error {
	switch relation.Index[0] {
	case 3: 
		post, ok := model.(*Post)
		if !ok {
			return errors.Wrapf(mapping.ErrInvalidRelationValue, "provided invalid value type: '%T'  for the field: 'Posts'", model)
		}
		b.Posts = append(b.Posts, post)
	default:
		return errors.Wrapf(mapping.ErrInvalidRelationField, "provided invalid relation: '%T' for the model 'Blog'", model)
	}
	return nil
}
func ( b * Blog ) AddRelationModel ( relation * mapping . StructField , model mapping . Model ) error { switch relation . Index [ 0 ] { case 3 : post , ok := model . ( * Post ) if ! ok { return errors . Wrapf ( mapping . ErrInvalidRelationValue , " " , model ) } b . Posts = append ( b . Posts , post ) default : return errors . Wrapf ( mapping . ErrInvalidRelationField , " " , model ) } return nil }
AddRelationModel implements mapping.MultiRelationer interface.
AddRelationModel implements mapping . MultiRelationer interface .
// Posts