mixflame/SwissDB

Associations (belongs_to, has_many)

Opened this issue · 5 comments

I don't care about the more advanced associations for now.

KCErb commented

Agreed

We have pluralization working now and all of the inflections. This might be easier now.

Will try this tomorrow

With the current design of objects in my production app, neither of my models actually belongs to or has many of the other. So we will need to try this in the debug app instead.

Just to help my self

Car has_many Tires # => Car.first.tires #=> Array of Tires belonging to Cars

Tires belongs_to Car # => Tire.first.car #=> SwissModel instance of Car which Tire belongs to