Re: association model

2006-09-03 Thread Dolorian
Dolorian wrote: > Then I make a record for the season : > > $this->Season->save($countries_data) > this is wrong. I mean: $this->Season->save($this->params['form']['Season']) --~--~-~--~~~---~--~~ You received

Re: association model

2006-09-03 Thread Dolorian
Have tried many different wayes, but with no success. I can't think out how to populate a join table which has more than two fields. In the index controller I 'm using the following: $this->set('langs', $this->Lang->findAll()); In the form: .. input fields for the seasons table ... $html->inp

Re: association model

2006-08-31 Thread Dolorian
Thanks for the answer. I have two questions on it: 1. I need to add an array item in Langs for every table that use langs, right ? 2. 'seasons_langs' has a third filed 'info', which actually holds the specific language information (for the other tables there could be more such fields). How am I s

association model

2006-08-31 Thread Dolorian
Hello ! I'm in a dilemma. I have the following tables: CREATE TABLE `langs` ( `lang_id` tinyint(3) auto_increment, `abrev` varchar(32), `name` varchar(32), PRIMARY KEY (`lang_id`) ) CREATE TABLE `seasons` ( `season_id` smallint(5) auto_increment, `year` varchar(16), `begin_date`