AlexDenisov / iActiveRecord

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

Bugfix and definition of custom foreign key names #59

Closed jklimke closed 10 years ago

jklimke commented 11 years ago
AlexDenisov commented 10 years ago

Could you open another PR, only with the bugfix? Also, I was wrong about foreignKey, it should not be defined in AR class, but in relation, because many classes may refer to record and use different foreign keys.

jklimke commented 10 years ago

Hi,

i created another pull request. Further i noticed, that the record name should not be used in AS clauses of selects since the field names are used for deriving class names on loading