do two hasMany relationships to that table, and make a model for it
i've done that way to make a 'Vote' model , where I have a user_id
and a movie_id , and the value for the vote also.
phpnut said something about cake having this in a future release
(adding different fields to a join table)
s
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 this message because you are subscribed to the Goo
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
Dolorian wrote:
> 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
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
I would bet on HABTM
class Season extends AppModel {
var $hasAndBelongsToMany = array (
'Lang' =>
array('className' => 'Lang',
'joinTable' => 'seasons_langs'));
}
class Lang extends AppModel {
var $