-
Notifications
You must be signed in to change notification settings - Fork 351
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
defaultValue doesn't work on update replace #34
Comments
Can you give me some more details in what you're trying to achieve? Reset a value to that you have defined in |
I have created a value in database, and now I want to replace that value with a new object (which was created using the fromJson method) |
I am using update(xxx).replace(aaa) |
Sorry for the delay, but I think I still need more info. |
I would expect the replace function to work exactly as create function. Remove the old row, and create a new row in its place. |
Sorry for the delay. This is pretty much the same problem as in #25. If a column is set to null we can't know if that's null as in "reset to the default value" or "override this column to NULL". |
This is only a problem, when the attribute is nullable. Secondly, I have read your comment on #25 too, and I would simply disallow default values for nullable attributes if I were you. |
This is now implemented on |
default value doesn't work when an existing row is being replaced, with another row where a required field is null
The text was updated successfully, but these errors were encountered: