marcoarment / FCModel

An alternative to Core Data for people who like having direct SQL access.
MIT License
1.65k stars 173 forks source link

Fix bug if unsavedChangeValue class different with fieldValue class #100

Closed fji8ejfijai83r closed 10 years ago

fji8ejfijai83r commented 10 years ago

Find a bug when run FCModelTest Demo.

Method shouldInsert and shouldUpdate will update time in Person Model. Call executeUpdateQuery, then unsavedchanges don’t include createTime and modifiedTime changes, when reload, unsavedchangess include createTime and modifiedTime changes but conflict db data, but unsavedChangeValue class is different with fieldValue class, cause an exception.

fji8ejfijai83r commented 10 years ago

Another Question : is it a good way to update time in shouldInsert and shouldUpdate ?