editfmah / sharkorm

Shark ORM for iOS/macOS/tvOS/watchOS
http://sharkorm.com
Other
248 stars 39 forks source link

Bug fix for https://github.com/sharksync/sharkorm/issues/127 #128

Closed ianhlavats closed 5 years ago

ianhlavats commented 5 years ago

This PR fixes an issue with uniquePropertiesForClass not working as expected and throwing an exception due to an array variable not being handled correctly.

ianhlavats commented 5 years ago

Hey @editfmah , any thoughts on this? As a workaround I'm overriding entityWillInsert in my persistent classes but the unique properties seems like the right way to do this.

editfmah commented 5 years ago

Sorry i've been away with very little connectivity, yes this looks like a good fix. Gonna spend some time this next week sorting this repo out and getting the CI to update CocoaPods.