Yes, the print_r() on $oForm->getValues() gives the exact same as on $_POST. All values are there. But when I do $oForm->getEmbeddedForm('facebook')->getValues(), it is empty. Even though $_POST['facebook'] is an array...
Has it to do with that UserSocialNetworkLinksForm is not a form built on a Propel model, and the embedded forms are? Thanks for your help! :) On 16 dec, 23:09, guiguiboy <guillaume.bre...@gmail.com> wrote: > Hi, > > Have you tried doing a print_r on $oForm->getValues() ? > > Guillaume B. > > On 16 déc, 19:31, HAUSa <jeroen_heeft_behoefte_aan_r...@hotmail.com> > wrote: > > > Weird... when I bind my form, the embedded forms don't receive the > > values. > > > This is my action: > > > $oForm = new UserSocialNetworkLinksForm(NULL, > > array('linked' => > > $aLinked)); > > if($oRequest->isMethod('post')){ > > > > > $oForm->bind($oRequest->getParameter($oForm->getName()), > > $oRequest->getFiles($oForm->getName())); > > > if($oForm->isValid()){ > > > foreach($oForm->getEmbeddedForms() as > > $oForm1){ > > die(print_r($oForm1->getValues())); > > die(print_r($oForm1->getObject())); > > } > > $this->doRedirect('wizard_start'); > > } > > > } > > > The print_r() of $oForm1->getValues() is empty. > > > How can it? > > If I do a print_r() of $_POST, the values are actually there! > > > Array > > ( > > [social_network_links] => Array > > ( > > [facebook] => Array > > ( > > [status_updates] => on > > [id] => 1 > > ) > > > [hyves] => Array > > ( > > [id] => 2 > > ) > > > [_csrf_token] => 8c12ad89bd06f4190127ecb253370fb2 > > ) > > > ) > > > Facebook and Hyves are the social networks here... > > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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