Re: Yet another HABTM multiple checkbox query, cakePHP 1.3 RC3

2010-04-05 Thread tricky999
Never mind, I found out the problem. It was in the view. echo $this->Form- >input('KsfDimensionsPortfolioEntry.ksf_dimension_id',array('type'=>'select ','multiple'=>'checkbox','label'=>'KSF dimensions','selected'=> $selectedDimensions)); Should read: echo $this->Form- >input('KsfDimension',arr

Re: Yet another HABTM multiple checkbox query, cakePHP 1.3 RC3

2010-04-05 Thread tricky999
Hi Andy, Thanks for replying > Why are you trying to save to the relationship table? Cake will do > that for you automatically. That's what I was lead to believe, but it doesn't seem to be working. > What does your view look like (at least the part that creates the > form)? Provided your H

Re: Yet another HABTM multiple checkbox query, cakePHP 1.3 RC3

2010-04-05 Thread Andy Dirnberger
Why are you trying to save to the relationship table? Cake will do that for you automatically. What does your view look like (at least the part that creates the form)? Provided your HABTM is set up correctly in the models and view, calling $this->Model->save($this->data) in the controller should b

Yet another HABTM multiple checkbox query, cakePHP 1.3 RC3

2010-04-05 Thread tricky999
I'll apologise now! There seems to be loads of advice about HABTM in cake, but I still can't quite get the answer to my particular problem. I have two tables and a join_table. On my view, I have created a form, which has a multiple checkbox. The problem I am having is that this is not returned i