salut
alors tout d'abord, je pense que le problème doit de tes tables.
CREATE TABLE IF NOT EXISTS months (
id int(11) NOT NULL AUTO_INCREMENT,
months varchar(60) NOT NULL,
<u><strong>months_id int(11) NOT NULL DEFAULT '0',</strong></u>
PRIMARY KEY (id),
KEY months\_id (months\_id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
A la place tu devrais avoir region_id. Idem ici, change
CREATE TABLE IF NOT EXISTS regions (
id int(11) NOT NULL AUTO_INCREMENT,
regions varchar(100) NOT NULL,
<u><strong>regions_id int(11) NOT NULL,</strong></u> par month_id
PRIMARY KEY (id),
KEY regions (regions)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=25 ;
Ah oui ,ca doit etre au singulier et non pluriel. Month_id et region_id. Pense a le corriger dans ta première table.
Ensuite dans ton model month :
un mois est plusieurs régions.
$hasMany = array('region');
un mois est plusieurs évenements.
$hasMany = array('region','evenement');
idem pour le model region :
une régions est plusieurs évenements.
$hasMany = array('month');
une régions est plusieurs mois.
$hasMany = array('month','evenement');
Voila normalement ca devrait fonctionner, enfin il faut coder maintenant pour réaliser ce que tu veux faire. :)