Fred Kelly Thu Apr 28 12:59:01 -0400 2011

Subject: [Newbie] Advantage of Associations

Hi There,

I'm new to php.activerecord, so please go easy on me.

I have a database set up with a couple of tables containing related rows (matched up via id fields). I am wondering if I add the code to my models for the relevant associations, what advantage this gives me?

I'm referring to these examples:

Thanks! :)

Yoan B Sat Apr 30 07:38:06 -0400 2011

It's a bit of a trivial question. What do you plan to do with your tables? Adding the relations gives you nothing unless you have to do something with it.