emilsjolander/sprinkles

ContentValues retrieved before beforeCreate is invoked

datadanne opened this issue · 2 comments

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.

The issue was introduced in f1d4fcc.

Good catch! I'll close this issue and we'll continue any conversations in the pull request issues by @zsiegel