Re: saveAll() and hasOne association problem
It works now. :) I removed the bind/unbindModel() calls and replaced them. http://bin.cakephp.org/view/38527196 ramonmaruko wrote: > Removing the bind/unbindModel() 'fixes' the problem. But I think I > need to have the bind/unbind since the member > may/may not have a spouse. > > On Feb 23, 6:25 pm, ramonmaruko wrote: > > What do I need to do so that saveAll() will automatically add the > > correct member_id for this:http://bin.cakephp.org/view/59481259 > > > > I have a EmergencyLoan hasOne Beneficiary which uses saveAll() that > > works perfectly. I can't seem to find what's wrong with the Member > > hasOne Spouse --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: saveAll() and hasOne association problem
Removing the bind/unbindModel() 'fixes' the problem. But I think I need to have the bind/unbind since the member may/may not have a spouse. On Feb 23, 6:25 pm, ramonmaruko wrote: > What do I need to do so that saveAll() will automatically add the > correct member_id for this:http://bin.cakephp.org/view/59481259 > > I have a EmergencyLoan hasOne Beneficiary which uses saveAll() that > works perfectly. I can't seem to find what's wrong with the Member > hasOne Spouse --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
saveAll() and hasOne association problem
What do I need to do so that saveAll() will automatically add the correct member_id for this: http://bin.cakephp.org/view/59481259 I have a EmergencyLoan hasOne Beneficiary which uses saveAll() that works perfectly. I can't seem to find what's wrong with the Member hasOne Spouse --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---