[symfony-users] Re: embedForm problem in edit view

2010-05-24 Thread Tom Ptacnik
It's strange. I embed all my subforms in the configure method. // Embed paymentinfo form $this->embedForm('paymentinfo', new PaymentinfoForm($this->getObject()- >getMyPaymentinfo())); On 23 kvÄ›, 13:01, Tofuwarrior wrote: > UPDATE: I've found that the problem seems to be because I have mbedded >

[symfony-users] Re: embedForm problem in edit view

2010-05-23 Thread Tofuwarrior
UPDATE: I've found that the problem seems to be because I have mbedded the form in the configure method. So it seems that contact_details_id is getting overwritten after the configure call. If I embed it after the form is created in the action then it works fine.: $this->form = new MscdbStory

[symfony-users] Re: embedForm problem in edit view

2010-05-23 Thread Tofuwarrior
Hi Daniel, Thanks a million for replying, don't know what I would do without help from people on these boards! I tried it but unfortunately it didn't work, the embedded form doesn't show, it reverts back to the propelChoice widget that is set in the default config. What I don't get is how it wor

[symfony-users] Re: embedForm problem in edit view

2010-05-22 Thread Richtermeister
I think if you embed the form under a different name (not contact_details_id, try just contact details), that might fix it. Right now what's happening is that the widgetschema "contact_details_id" is being rendered with a value of 1, which makes no sense, since it''s expecting an array as values.