AlexDenisov / iActiveRecord

ActiveRecord for iOS without CoreData, only SQLite
http://alexdenisov.github.com/iActiveRecord/
MIT License
354 stars 50 forks source link

Uniqueness validator considers record updates #11

Closed ebaker355 closed 12 years ago

ebaker355 commented 12 years ago

Uniqueness validator would fail if a record was being updated, but the required unique field did not change. Now the validator excludes the old record when looking for duplicates.

AlexDenisov commented 12 years ago

Sorry for delay, but I can't merge this pull request, because tests failed. I've found this problem too and it solved in new (but unstable) version.

Thanks for contributing.

ebaker355 commented 12 years ago

No problem. Keep up the good work! Your code looks very interesting.

Eric

On Jun 29, 2012, at 4:54 AM, "alex.d"reply@reply.github.com wrote:

Sorry for delay, but I can't merge this pull request, because tests failed. I've found this problem too and it solved in new (but unstable) version.

Thanks for contributing.


Reply to this email directly or view it on GitHub: https://github.com/AlexDenisov/iActiveRecord/pull/11#issuecomment-6655152

AlexDenisov commented 12 years ago

Fixed. You can try new version from master branch, but instead @synthesize use @dynamic at records. Docs would be updated soon. Note that current master version is still in development. Thank for contribution and feel free to open issues and pull requests.