Log message #3150184

# At Username Text
# Jan 30th 2014, 19:31 BackEndCoder you are saving the joining table
# Jan 30th 2014, 19:31 BackEndCoder what you are doing isn't saving habtm
# Jan 30th 2014, 19:31 todds The way that convo progressed made me think of itâ?¦ had to share. :)
# Jan 30th 2014, 19:31 BackEndCoder chris______,
# Jan 30th 2014, 19:30 BackEndCoder todds, damn them and thier jokes :D
# Jan 30th 2014, 19:29 chris______ thats what I want to do
# Jan 30th 2014, 19:29 chris______ 1 | 3
# Jan 30th 2014, 19:29 chris______ 1 | 2
# Jan 30th 2014, 19:29 chris______ 1 | 1
# Jan 30th 2014, 19:29 chris______ order_id | item_id
# Jan 30th 2014, 19:29 chris______ the relationship table would have rows like this:
# Jan 30th 2014, 19:29 chris______ Since I am creating Order with ID = 1, and that order contains Items with IDs: 1, 2, 3 and 4;
# Jan 30th 2014, 19:28 todds sorry, I can't offer any help, but i gotta share: http://xkcd.com/1323/
# Jan 30th 2014, 19:28 chris______ so your relationship table (N:M) would have IDs for both Order and Items, right?
# Jan 30th 2014, 19:28 the-neon yeah
# Jan 30th 2014, 19:27 chris______ ok lets suppose you have an Order, and in that Order you have Items, right?
# Jan 30th 2014, 19:25 the-neon perhaps I'm a bit confused by my own assoc issue but I can't follow -_-
# Jan 30th 2014, 19:23 chris______ quotation 1, product 1; quotation 1, product 2; quotation 1, product 3
# Jan 30th 2014, 19:23 the-neon 1-2?
# Jan 30th 2014, 19:22 chris______ that's what I want to do
# Jan 30th 2014, 19:22 chris______ ?
# Jan 30th 2014, 19:22 chris______ cant i have rows like 1-2, 1-3, 1-4
# Jan 30th 2014, 19:22 chris______ but
# Jan 30th 2014, 19:22 chris______ i see
# Jan 30th 2014, 19:14 todds verbose correction
# Jan 30th 2014, 19:12 the-neon now... is it possible to use one action for a HasManyThrough add/save? Possible/Correct?
# Jan 30th 2014, 19:08 TeckniX chris______: doesn't look like it's deleting anything - You're passing an ID for each, so it's just over-writing the previous data at the ID found
# Jan 30th 2014, 19:08 the-neon that's what you need 99%
# Jan 30th 2014, 19:08 the-neon chris____ open the book and on model associations read about 'unique'
# Jan 30th 2014, 19:08 the-neon lol
# Jan 30th 2014, 19:07 TeckniX (s/like/lie/) correction: Don't lie bot..
# Jan 30th 2014, 19:07 TeckniX Don't like bot..
# Jan 30th 2014, 19:07 chris______ i set nothing. All I did was <pre>public $hasAndBelongsToMany = 'Product';</pre> on Quotation and viceversa
# Jan 30th 2014, 19:06 TeckniX !seen dereuromark
# Jan 30th 2014, 19:05 the-neon in your HABTM declaration what have you set for 'unique' ?
# Jan 30th 2014, 19:04 the-neon can you pastebin your model?
# Jan 30th 2014, 19:02 chris______ the problem I'm having is that before inserting a new row in the relationship table, it deletes the previous one
# Jan 30th 2014, 19:02 chris______ Hello, I'm having issues saving HABTM data. Here's the debug() of the array http://bin.cakephp.org/view/1341935031
# Jan 30th 2014, 18:40 NetersLandreau probably not.. it's just a habit of mine
# Jan 30th 2014, 18:36 jhughes NetersLandreau: thanks but I just realized that it just won't display if debug level is 0 (production) so I don't think this is an issue. Is loading the debug kit resource intensive? Is it worth to load it conditionally?
# Jan 30th 2014, 18:35 NetersLandreau jhughes: this may work for - http://bin.cakephp.org/view/12966909