Hi,
I have two models: Cart and Product, the HABTM relation and
carts_products table.
Now I have action connecting carts and products (without form):
blabla/carts/add/16/product_id:2
So I build data like this and save:
array(2) {
["Cart"]=>
array(1) {
["id"]=>
string(2) "16"
}
["Product"]=>
array(1) {
["Product"]=>
array(1) {
[0]=>
string(1) "2"
}
}
}
Works perfect. Now I want to add extra column to HABTM table -
quanitity. I've added, and tried to prepare data for saving like this:
array(2) {
["Cart"]=>
array(1) {
["id"]=>
string(2) "16"
}
["Product"]=>
array(1) {
["Product"]=>
array(1) {
[0]=>
array(2) {
["product_id"]=>
string(1) "2"
["quantity"]=>
string(1) "1"
}
}
}
}
And it doesn't work :( I've read some posts and faq, but haven't
worked out my problem.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---