On Aug 11, 11:06 am, leafchild <[email protected]> wrote: > How can I get "$this->data" has "recursive = 6" data to avoid getting > "undefined index" error?
I believe i had the same problem as you. Or in my case it was an overbelief in cakephp :P What you need to do is to ether re-read the original-data and then merge it with your post data, to get the "complete" recursive data- array. I've done that in a couple of places and it works, however there is a "better" solution I think. That would be that you fetch 2 arrays, one with the data that you will modify, and the other one containing the related data. The later one you will always fetch, while the first one is only for when you haven't submitted anything. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
