I need some help! I still have the _join data forgotten even after i put this before patch Entity $this->request->data['products'] = array_values($this->request->data['products']);
Can you help me please?? Its really weird, beacuse when i choose only the first product with its respective quantity as my case, it works! but when i choose more products the _joinData goes null! PLEASE HELP! im in this problem for days!!
El sábado, 21 de marzo de 2015, 10:10:39 (UTC-4), Joe T. escribió:
José, Kevin,
Breakthrough at last!
https://github.com/cakephp/cakephp/issues/6100
Fixed validation & other minor discrepancies in Table/Entity classes that may not have even affected things much, but didn't get any better results.
Finally i had nothing left, so tried resetting indexes on the associated data - it was the only difference left i could see:
$this->request->data['attributes' ] = array_values($this->request->data ['attributes']);
Before doing this, patchEntity() was losing the _joinData. After adding that reset, it works!
Mark is going to research it further, but for now at least i have a relatively low-impact workaround.
Thanks for all your help.
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