So I have Teams HABTM Areas, with the following in the Team model:
var $hasAndBelongsToMany = array(
'Area' = array('className' = 'Area',
'joinTable' = 'areas_teams',
'foreignKey' = 'team_id',
'associationForeignKey' = 'area_id',
Nevermind, it was a MySQL issue involving duplicate keys. Whoops on my
part.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To
I using checkbox and have try it...
This like Posts and Tags, both of them in HABTM relations.
for example, in form add post :
on View post :
?php echo $form-create('Post');?
.
?php echo $form-input('Tag.Tag', array('type'='select',
'multiple'='checkbox', 'options'=$tags, 'label'='Tags:br