Re: the hasMany Model array is gone !
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 OrderDetailthe Order hasMany OrderDetailAnd I read Order , then it's got the following array----------------------------[Order]id = 1name = xxx[OrderDetail]id = 2name = xxx------------------------------But I tried to edit the Order data , then validate fail the array is[Order]id = 1name = ' ' >-------------- not empty !!!!the OrderDetail Model array is gonehow 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home