After updating Cake libs from SVN, Cake does not saves HABTM
associated data.

Model 'Product':
--------------
natural_key VARCHAR(100) PRIMARY KEY
name (VARCHAR...)
e.t.c

HABTM
'Replacement'=> array(
'className'=>'Product',
'joinTable'=>'product_replacements',
'foreignKey'=>'product_key',
'associationForeignKey'=>'replacement_key',
'unique'=>true
)
-------------

Join Table
---------------
product_key VARCHAR(100)
replacement_key VARCHAR(100)
---------------

I tried to save this data structure:

array(
  'Product' => array( 'natural_key' => 'cool-product')
  'Replacement' => array(
      'Replacement' => array( 'generic-one', 'generic-two', 'generic-
three')
   ))

but $this->Product->save() doesn't saves any associations.

It's my mistake or a Cake bug?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to