I don't want create special table for user's profile.

In database I added column 'name' to sf_guard_user table, next:
[code]
php symfony doctrine:build-schema
php symfony doctrine:build-model
php symfony doctrine:build-forms
php symfony doctrine:generate-module --with-show --non-verbose-
templates frontend sfguarduser sfGuardUser
php symfony cc
[/code]

next modify sfGuardUserForm.class.php to add input field 'name':
[code]
class sfGuardUserForm extends PluginsfGuardUserForm
{
  public function configure()
  {

        $this->widgetSchema['name'] = new fWidgetFormInput(array(
  'label' => 'name',));

  }
}
[/code]

And I see field name on the website but when I write in this field
something and press 'submit' I get:
[code]
Unexpected extra form field named "name".
[/code]

[b]Is it normal ? I can't do that (it is obligatory to create second
table for profile) or I can do that (it is possible to add columns to
sf_guard_user table) but I have somewhere mistake ? [/b]:(



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to