AlexDenisov / iActiveRecord

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

Relationship setter names #6

Closed shukob closed 12 years ago

shukob commented 12 years ago

Hi,

This project seems very interesting!

Anyway, it seems that to avoid providing getter name with its first letter capitalized as setter name, _ar_registerBelongsTo##class and set##class uses 'class' for their method names, but it is possible that one has more than one relationships to a class.

So I think it might be better to use something like belongs_to_dec(class, getter, Getter, dependency) for generality.

Is there any other reasons why 'class' is used for those names?

Thanks

Shunpei

shukob commented 12 years ago

I read through the code deeply and realized that it will be a long way to do this.