[symfony-users] Re: problem rendering embedded form when in edit

2010-05-27 Thread Tom Ptacnik
Ok, I think the problem might be in the actions I think you should realy move the embedForm function to the configure method of the form class - the form class will be more compact. And the thing that the rendering of the form is ok, and after the clicking on the save button the problem

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-27 Thread Tofuwarrior
Hi Tom, I have eventually sorted the problem by simply adding the fields to the table, thus removing the need for embedded field, the abstraction of the contact details wasn't actually necessary when I reviewed it BUT I think the issue was to do with where the FK was. With sfGuardUSerProfile the

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-25 Thread Tom Ptacnik
The problem is, that you have to connect the object of the embeded form with the object of the master form somehow. my embed form usage ... }this code is in the master form class in the configure method] // Embed paymentinfo form $this-embedForm('paymentinfo', new

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-25 Thread Tofuwarrior
HI Tom, Thanks for sticking with me on this, much appreciated. I think I may have tried that before because when I do, 2 familar things happen. 1 Saem problem with the id being 1. 2 is that when I try to view the edit action I get the following form rendering error which dissappears when I

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-24 Thread Tom Ptacnik
Show some code of how you embed the form. On 21 kvě, 16:26, Tofuwarrior p...@clearintent.co.uk wrote: Hi, Anyone give me any pointers? I'm stumped and not really sure where to look. Would really appreciate any help anyone could give, deadline is looming :-( I have an embedded form  that

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-24 Thread Tofuwarrior
Hi Tom, Thanks for replying. My problem has moved on. I can render the forms fine now but when I save in new mode the system saves the parent(storyteller) and the child (contact_details) objects but doesn't put the right FK reference in the parent so all of the parent objects I save have a

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-24 Thread Tofuwarrior
Hi, UPDATE The same problem happens with edit/update not just new/create. Both objects save but FK becomes 1 whatever it was before. P Anyone? On May 24, 1:47 pm, Tofuwarrior p...@clearintent.co.uk wrote: Hi Tom, Thanks for replying.   My problem has moved on. I can render the forms