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

Reply via email to