// IsFieldZero implements mapping.Fielder interface.
IsFieldZero implements mapping.Fielder interface.
// IsFieldZero implements mapping . Fielder interface .
func (c *Comment) IsFieldZero(field *mapping.StructField) (bool, error) {
	switch field.Index[0] {
	case 0: 
		return c.ID == 0, nil
	case 1: 
		return c.Body == "", nil
	case 3: 
		return c.PostID == nil, nil
	}
	return false, errors.Wrapf(mapping.ErrInvalidModelField, "provided invalid field name: '%s'", field.Name())
}
func ( c * Comment ) IsFieldZero ( field * mapping . StructField ) ( bool , error ) { switch field . Index [ 0 ] { case 0 : return c . ID == 0 , nil case 1 : return c . Body == " " , nil case 3 : return c . PostID == nil , nil } return false , errors . Wrapf ( mapping . ErrInvalidModelField , " " , field . Name ( ) ) }
IsFieldZero implements mapping.Fielder interface.
IsFieldZero implements mapping . Fielder interface .
// ID // Body // PostID