marcoarment / FCModel

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

Incorrect handling of embedded frameworks #133

Closed jasonsilberman closed 6 years ago

jasonsilberman commented 8 years ago

I am using Swift embedded frameworks and so when FCModel calls NSStringFromClass() it gets something like Core.Model. So to combat this I named my database Core.Model.

However, then it thinks all the database columns should be prefixed with Core.Model, so id because Core.Model.id. This obviously provides a problem because I cannot have a property named that.

I am at a loss for what to do. I am going go through and find whenever that is used and make it only use the second half of the string after the ., but this does not seem like a wise way to do this.