beedb
beedb copied to clipboard
Saving in postgres fails
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".
Seems like this should be closed?