On Fri, Jun 19, 2009 at 2:04 AM, Jon Chin<[email protected]> wrote: > > Thanks for the tip. Sadly, I'm still having problems with it. When I > add <?=$form->input('id');?> to the view, all it does is generate <input > type="hidden" name="data[Application][id]" value="" id="ApplicationId" > /> which doesn't change anything in my controller when I print the > contents of $this->data. I also tried making the field called > application_id in the form, but it didn't have an effect either. > > It's really stumping me. Any idea what's going on? Since my primary > key on Merit is application_id, should Cake already know that if I'm > trying to set $this->Merit->id? >
The PK for Merit should be "id", not "application_id". That should be a foreign key pointing to applications table. If you post the code for the controller action we might be able to sort it out. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
