Yes, you need to add the fields of the profile form to the generator.yml file. It won't work otherwise, but that's understandable because there's no magic going on that adds new fields you add to the model automatically to the generator.yml as this file is already written to disk.
Cheers, Daniel PS: It will work as soon as you add those fields. Be careful that you don't have duplicate field names in the user and the user profile model. But that shouldn't be a problem. Also be careful with file uploads, they won't work, either. You'd have to override the doSave method of the form and save uploaded files there. I don't even know if this is fixed in symfony 1.4. Anyone? On 2009-12-08, at 8/December, 2:28 PM, Dan Leech wrote: > hi, i know there have been a couple of posts on this, and that it is > possible to embed the User Profile form in the sfGuardAdminForm .. but > .. should it work by default anyway? > > I created a sfGuardProfile class, and then made some fields required. > The user could then edit their own profiles; then as an admin, if I > edit a users sfGuardUser record in the backend it wouldnt let me > submit the form, as it was invalid - it didnt have the required fields > from the profile class. > > I looked into this and it was because the sfGuardAdminUserForm merges > the profile form: > > $this->mergeForm($profileForm); > > but doesnt render the form fields .. should it do this? > > im using symfony 1.2 > > cheers > > dan > -- > Dan Leech > > Dynamic Web Sites > www.dantleech.com > > Bath Gigs > www.bathgigs.co.uk > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
