// GetRelationLen implements mapping.MultiRelationer interface.
GetRelationLen implements mapping.MultiRelationer interface.
// GetRelationLen implements mapping . MultiRelationer interface .
func (b *Blog) GetRelationLen(relation *mapping.StructField) (int, error) {
	switch relation.Index[0] {
	case 3: 
		return len(b.Posts), nil
	default:
		return 0, errors.Wrapf(mapping.ErrInvalidRelationField, "provided invalid relation: '%s' for model: '%T'", relation, b)
	}
}
func ( b * Blog ) GetRelationLen ( relation * mapping . StructField ) ( int , error ) { switch relation . Index [ 0 ] { case 3 : return len ( b . Posts ) , nil default : return 0 , errors . Wrapf ( mapping . ErrInvalidRelationField , " " , relation , b ) } }
GetRelationLen implements mapping.MultiRelationer interface.
GetRelationLen implements mapping . MultiRelationer interface .
// Posts