-
Notifications
You must be signed in to change notification settings - Fork 370
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
save() fails silently if you have select()ed some fields, but not the id #203
Comments
This should probably throw an exception. Can you or anyone prepare a pull request for this issue? I don't have the time at the moment unfortunately. |
@treffynnon should this be closed before #205 is merged or another solution committed? |
It will be closed after #205 is merged. At the moment I don't see any issue |
That's what I'm saying... you've closed it already. |
Ah, I have? I got disturbed mid-way through working on it the other day so |
No worries. |
Restrict null primary keys on update/delete, resolves #203
Given the following table
With the data
And the following code
$success
is true, but the database will not have reflected this change (email will still befoo@example.com
).get_last_query()
indicates that the following query is being executedNotice that it could not find the
id
value to place in the query.A work around is to remove the
select()
call altogether, or at least callselect('id')
, but I still think this is a bug.The text was updated successfully, but these errors were encountered: