Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving in postgres fails #37

Open
mikejihbe opened this issue Jul 30, 2013 · 1 comment
Open

Saving in postgres fails #37

mikejihbe opened this issue Jul 30, 2013 · 1 comment

Comments

@mikejihbe
Copy link

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".

@magnushoerberg
Copy link

Seems like this should be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants