-
-
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
model->refresh() should return all defined columns #13781
Comments
@niden thanks for you tagging this issue. hope this can be fixed soon. |
I ran the same test using the the But the validation during the second We could copy the unset default values from the |
@zsilbi Thanks for your great work on this framework. |
@cnyyk the default values are present in the |
@zsilbi I think the best approach on this would be to copy the unset default values from the Do you want to do this or should I? |
@niden I am on it, thanks 👍 |
Resolved in #14088 |
Thanks again for your great work. |
Expected and Actual Behavior
SQL schema
MUST DOING THIS WAY TO AVOID EXCEPTION:
If some code defined in
afterSave()
in model, when created then save it:refresh()
it.refresh()
it, when save it, will using null value to update not existed property, and avoided all default value.SO, IS THERE A WAY TO REAL REFRESH MODEL WAY?
Details
The text was updated successfully, but these errors were encountered: