// SetPrimaryKeyStringValue implements mapping.Model interface method.
SetPrimaryKeyStringValue implements mapping.Model interface method.
// SetPrimaryKeyStringValue implements mapping . Model interface method .
func (p *Post) ParseFieldsStringValue(field *mapping.StructField, value string) (interface{}, error) {
	switch field.Index[0] {
	case 0: 
		return strconv.ParseInt(value, 10, mapping.IntegerBitSize)
	case 1: 
		return value, nil
	case 2: 
		return value, nil
	case 3: 
		return strconv.ParseInt(value, 10, mapping.IntegerBitSize)
	case 5: 
		return strconv.ParseInt(value, 10, mapping.IntegerBitSize)
	}
	return nil, errors.Wrapf(mapping.ErrInvalidModelField, "provided invalid field: '%s' for given model: Post'", field.Name())
}
func ( p * Post ) ParseFieldsStringValue ( field * mapping . StructField , value string ) ( interface { } , error ) { switch field . Index [ 0 ] { case 0 : return strconv . ParseInt ( value , 10 , mapping . IntegerBitSize ) case 1 : return value , nil case 2 : return value , nil case 3 : return strconv . ParseInt ( value , 10 , mapping . IntegerBitSize ) case 5 : return strconv . ParseInt ( value , 10 , mapping . IntegerBitSize ) } return nil , errors . Wrapf ( mapping . ErrInvalidModelField , " " , field . Name ( ) ) }
SetPrimaryKeyStringValue implements mapping.Model interface method.
SetPrimaryKeyStringValue implements mapping . Model interface method .
// ID // Title // Body // Likes // BlogID