i have an error about getEmbededForm other things the function unsetAllFieldsExcept is in the file : BaseFormDoctrine.class.php
On Mar 19, 11:41 am, Alexandru-Emil Lupu <gang.al...@gmail.com> wrote: > in your form2 class add a function unsetAllFieldsExcept > and then replace: > > $this->unsetAllExcept(array( 'name','email' , 'form2[books]' ) ); > > to : > > $this->unsetAllExcept(array( 'name','email' ) ); > > if ($this->getEmbededForm('form2') instanceof form2Form ) > { > $this->getEmbededForm('form2')->unsetAllExcept('book'); > > } > > Alecs > > On Fri, Mar 19, 2010 at 12:26 PM, Belgacem TLILI > <belgacem0...@gmail.com>wrote: > > > > > Hello for all Sf dev, > > > i'm using the function unsetAllFieldsExcept to get a form in 2 steps > > like this exemple > >http://www.iw2.fr/2009/08/28/symfony-formulaire-en-plusieurs-etapes/ > > > my problem is : i would like to unset a fields for an embed form > > > i call the unsetAllFieldsExcept function here to unset all fields > > except name and email > > > $this->unsetAllExcept(array( 'name','email') ); > > > now i would use this function with a fields of ana embed form > > i'm traying this > > > $this->unsetAllExcept(array( 'name','email' , 'form2[books]' ) ); > > > but this does not work > > any dev has an idea please ? > > > -- > > 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<symfony-users%2bunsubscr...@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. > > -- > Have a nice day! > > Alecs > Certified ScrumMaster > > There are no cannibals alive! I have ate the last one yesterday ... > I am on web: http://www.alecslupu.ro/ > I am on twitter:http://twitter.com/alecslupu > I am on linkedIn:http://www.linkedin.com/in/alecslupu > Tel: (+4)0722 621 280 -- 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.