The array from erading data does not look right for hasMany. What is the command you use for reading data? How do you save the data? What's in your View? Show the code, please.
On Monday, 9 July 2012 19:29:30 UTC+2, DANNY wrote: > > Hi everyone : > > I create two Model , Order and OrderDetail > > the Order hasMany OrderDetail > > And I read Order , then it's got the following array > ---------------------------- > [Order] > id = 1 > name = xxx > [OrderDetail] > id = 2 > name = xxx > ------------------------------ > > But I tried to edit the Order data , then validate fail the array is > [Order] > id = 1 > name = ' ' >-------------- not empty !!!! > > the OrderDetail Model array is gone > how can I stay the it ? And Why the hasMany data is gone ? > > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
