Closed fedefrappi closed 12 years ago
Thank for help.
Please, before you open Pull Request try to run UnitTests target.
Of course Alex, I'll do it the next time ;) Is there something wrong with this pull request?
Tests are failed, so now it's doesn't work as needed. But I'll fix this later. I found this bug in the experimental branch and fix it, but forgot to merge with master. In any case, thanks for contributing ;-)
I'm sorry about that! Thanks to you for your library, it makes working with sqlite much easier!
The code for keeping track of the edited fields of an object wasn't called if they were changed through the default synthesized setters, but only when calling the setValue:forKey: method. This caused the property changes to be serialized only at the first call of the save method, when all the fields are marked as edited. I added a KVO observer for each column of an ActiveRecord object and commented out the now redundant setValue:ForKey: override.