One more thing: keep in mind that you want to update you plugins in
the future. If you add custom columns this way to the schema, it could
be overwritten during the next update and you might lose your extra
column. This will also affect any modifications to the forms ...

Michael


On 2 Mrz., 17:45, "[email protected]"
<[email protected]> wrote:
> You should use plugins like they're supposed to be used. I don't use
> it, but as far as i know the extra profile table IS for that. If you
> do something else, then at your own risk, or you know what you are
> doing and how to deal with it.
>
> Michael
>
> On 2 Mrz., 07:52, dziobacz <[email protected]> wrote:
>
> > 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