I have implemented this, but i only have the Object after a previous have saved it.
Do i have to do something like check ($this->getObject()) as a object? public function configure() { $subForm = new sfForm(); for ($i = 0; $i < 2; $i++) { $linharecibo = new Linharecibo(); $linharecibo->Recibo = $this->getObject(); #This line does not have a object the first time echo 'Raios'.$linharecibo->Recibo->getId(); $form = new LinhareciboForm($linharecibo); $subForm->embedForm($i, $form); } $this->embedForm('Linhas', $subForm); } -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.