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
Composite primary key fails on relationship with empty result set #59
Comments
could you print the error message? |
Here is the simple example:
And here is the error from console:
|
I have fixed the issue in HEAD code, please try it and let me if it works for you. |
Still fails for me:
|
please pull codes and try again |
Works now. Thank you! |
Thanks for the fix, using master for now. |
I had the same issue and the master branch did fix it. Thanks for the fix, it works nice. Just out of interest that Bullet can break the ActiveRecord query? Is it a wrong approach or has to be done in this way? Cos for me intercepting the Rails code is not quiet good... |
@lecky-ambit bullet does not change ActiveReord query, it just parses the results of ar queries. |
RuntimeError: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Error is present on Rails 3.2.1
Using jruby 1.6.7
JDBC adpater https://github.com/jruby/activerecord-jdbc-adapter.git
Composite primary key
The text was updated successfully, but these errors were encountered: