> Well, considering other people seem to be able to use HABTM-related
> models, I'd say that perhaps something is wrong in your configuration.
> :)
The weird thing is that everything works perfectly normally as long as
I use a multi-select field, i.e. a select tag that has the "multiple"
attribu
On 5/23/07, simon <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Oddly enough Cake doesn't seem to understand that it should make an
> entry in the join table for HABTM related models when the foreign key
> isn't supplied from a multi select field...
> Let me try and explain that :)
Well, considering oth
The way I've worked around it for the moment is to add the following
to the add function in the controller:
if( !is_array($this->data['Person']['Person']) ) {
$this->data['Person']['Person'] = aa(0,
$this->data['Person']
['Person']);
The way I've worked around it for the moment is to add the following
to the add function in the controller:
if( !is_array($this->data['Person']['Person']) ) {
$this->data['Person']['Person'] = aa(0,
$this->data['Person']
['Person']);
Hi,
Oddly enough Cake doesn't seem to understand that it should make an
entry in the join table for HABTM related models when the foreign key
isn't supplied from a multi select field...
Let me try and explain that :)
Say you are creating a new Item which belongs to one or many Persons,
you will