beedb icon indicating copy to clipboard operation
beedb copied to clipboard

Saving in postgres fails

Open mikejihbe opened this issue 11 years ago • 1 comments

When initializing an ORM and saving an object like this, I get an error "reflect: call of reflect.Value.Set on zero Value"

orm := beedb.New(rawdb, "pg")
var service models.Service
orm.Save(&service)

This happens because the Primary Key field it tries to update on the struct is "id" instead of the expected "Id".

mikejihbe avatar Jul 30 '13 21:07 mikejihbe

Seems like this should be closed?

magnushoerberg avatar Sep 17 '13 10:09 magnushoerberg