i tinkered with ->link() a bit last night, but must have set up something wrong, as it tried to insert more than 1 link record for the same Listing ID / Attribute ID pair, violating the unique key.
There was a guy on #cakephp IRC last night having the exact same problem i'm having, and markstory happened to come online & we discussed it with him. He seems to be getting what we're after. He showed us the existing test cases, but none match exactly what i'm trying to accomplish. Everything is tuned to assume there's an update on both ends of the association and the pivot, where i only want to update one end, and the pivot table.
So, i'll monkey around with ->link() some more tonight & see if there's any more progress discussing it with Mark.
i'll follow up with any progress. :)
Thanks!
-joe
On Friday, 13 March 2015 13:13:30 UTC-4, heavyKevy wrote:
-- There was a guy on #cakephp IRC last night having the exact same problem i'm having, and markstory happened to come online & we discussed it with him. He seems to be getting what we're after. He showed us the existing test cases, but none match exactly what i'm trying to accomplish. Everything is tuned to assume there's an update on both ends of the association and the pivot, where i only want to update one end, and the pivot table.
So, i'll monkey around with ->link() some more tonight & see if there's any more progress discussing it with Mark.
i'll follow up with any progress. :)
Thanks!
-joe
On Friday, 13 March 2015 13:13:30 UTC-4, heavyKevy wrote:
I believe that is your answer you were looking for...
I missed it too.
Thanks Jose for pointing that one out.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment