You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2021. It is now read-only.
I have inherited a project which has a row with an id of 0 which causes an exception to be thrown incorrectly.
Looking through $model->getKey() I noticed that it returns 'NULL' if a key doesn't exist but will return '(int) 0' if an 'id' key does exist with value of '(int) 0'.
'(int) 0' will evaluate as false even though it is in fact the correct value.
0 commit comments