Hi All! I have a strange problem: I'm using symfony1.2.8 and doctrine. In DB i have a one-to-many relationship (Offer -> Visits). I have such nested forms for implementing one-to-many relationship:
OfferForm (main form) -> sfForm (visit's forms holder) -> VisitForm (1 or more forms for child table). my action is: public function executeShort(sfWebRequest $request) { $this->form = new OfferForm(); if($request->isMethod('post')) { $this->form->bind($request->getParameter('offer'), $request- >getFiles('offer')); if($this->form->isValid()) { $offer = $this->form->save(); } } } i'm adding visits via ajax. and it works fine - when i debug i see that the nested form of visit is added only once. BUT! for every Visit i have got 2 inserted rows in DB: the first one is completely filled, second is with NULL in foreign key column. i can't fix it for already 5 days. need help, please! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---