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