The developers guide with the Relational Active Record section is great. It is full with a lot of information to digest.
I have been looking for a simple tutorial about MANY_MANY and I found one, so I thought of sharing it.
The developers guide with the Relational Active Record section is great. It is full with a lot of information to digest.
I have been looking for a simple tutorial about MANY_MANY and I found one, so I thought of sharing it.
In this tutorial, we are using three tables, two for base requirement and third for relations.
It is a good one but what if we want to have a relation with two tables?
Could you illustrate what you mean.
Sorry, as to have many to many relations we need a third table for it.
Categories - Storing category related information
Products - Storing Products related Information
Category_products - Containing relational information about products and categories.
Thanks