-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: Fatal error on call $model->getChangedFields() #14466
Comments
This is the intended behavior. If there is no snapshot, an exception is thrown. We can change this to return an empty array. This will break backwards compatibility. @phalcon/core-team Thoughts? |
Thanks @niden! In my opinion this is not the case for throwing an exception. |
For getChangedFields to work snapshot is required. If we sent back an empty array the user doesn't know the method isn't working.
Maybe we should update the error. "keepSnapshots must be enabled to track changes" |
I agree with @ruudboon |
Implemented |
Describe the bug
Fatal error on call
$model->getChangedFields()
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Details
4.0.0-rc.1
7.3.9
linux
installing via package manager
mysql
The text was updated successfully, but these errors were encountered: