How to bulk update many side of the one to many table from Basket Plugin

34 views
Skip to first unread message

karthick b

unread,
Sep 28, 2016, 6:58:42 AM9/28/16
to Fat-Free Framework
Hi,

I have following contents in the Basket.

Array ( [57eba0b2b04051.07056244] => Array ( [id] => 1 [name] => Product1 [rate] => 30.00 [quantity] => 1 [total_price] => 30.00 )
        [57eba0b3f0bec6.26666987] => Array ( [id] => 2 [name] => Product2 [rate] => 75.00 [quantity] => 1 [total_price] => 75.00 )
      )


I am manually updating the one side of the "Order" table and after getting the one side Id, I wanted to update the many side of the OrderDetails Table. How can I add one more field value to the Basket (containing the OrderDetails fields). Basically I want to update the OrderDetails table with the "Order" table ID in all the rows of the OrderDetails table in a single stroke.

Can you please help me on how to do this.
Thanks guys.

karthick b

unread,
Sep 29, 2016, 8:55:29 AM9/29/16
to Fat-Free Framework
Ikkez solved this. See here
Reply all
Reply to author
Forward
0 new messages