-
Notifications
You must be signed in to change notification settings - Fork 34
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
ID::make() should use model's primary key #38
Comments
I wouldn't say 'often', but yeah, this is something to take into account :) |
What version you use?
ID currently use |
As @devmsh posted, the ID field uses the value from getKeyName(). |
For the reference, it should be used like so:
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ID::make()
assumes that primary key isid
which often isn't the case. Why not default toModel::getModel()->getKeyName()
instead?The text was updated successfully, but these errors were encountered: