// GetRelationModel implements mapping.SingleRelationer interface.
GetRelationModel implements mapping.SingleRelationer interface.
// GetRelationModel implements mapping . SingleRelationer interface .
func (c *Comment) GetRelationModel(relation *mapping.StructField) (mapping.Model, error) {
	switch relation.Index[0] {
	case 2: 
		if c.Post == nil {
			return nil, nil
		}
		return c.Post, nil
	default:
		return nil, errors.Wrapf(mapping.ErrInvalidRelationField, "provided invalid relation: '%s' for model: '%T'", relation, c)
	}
}
func ( c * Comment ) GetRelationModel ( relation * mapping . StructField ) ( mapping . Model , error ) { switch relation . Index [ 0 ] { case 2 : if c . Post == nil { return nil , nil } return c . Post , nil default : return nil , errors . Wrapf ( mapping . ErrInvalidRelationField , " " , relation , c ) } }
GetRelationModel implements mapping.SingleRelationer interface.
GetRelationModel implements mapping . SingleRelationer interface .
// Post