![]() |
Model relationships
I have two DB tables: Themes and Events with the following relevant columns:
Code:
Theme:Code:
has_many :events, :through => :events_date_begin.monthThanks in advance. |
Quote:
best regards |
One theme has many events. Events have only one theme, so one-to-many :)
|
| All times are GMT +1. The time now is 10:01 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.