ContentValues retrieved before beforeCreate is invoked
datadanne opened this issue · 2 comments
datadanne commented
Model.save
retrieves all ContentValues
before invoking beforeCreate()
which breaks fields that are not nullable but are initialized in beforeCreate()
. An example of this can be seen in the sample where a Note cannot be saved because of a NullPointerException
thrown by the DateSerializer
for the field createdAt
.
emilsjolander commented
Good catch! I'll close this issue and we'll continue any conversations in the pull request issues by @zsiegel