Hi all,

I have the following in my schema.yml

title:
      type: enum
      length: 2
      values: [Mr, Ms]
      default: Mr

In my databases.yml, I have given
     attributes:
        use_native_enum: true

In my registration form, I have

    $this->setWidget('title',
                new sfWidgetFormChoice (array('choices' => array ('Mr',
'Ms'),'expanded' => true
        )));
        $this->setDefault('title', 0);

But my selection does not get posted to the database. In the database the
title field is an enum with values 'Mr' & 'Ms.' and the default value is set
as 'Mr'.

So whenever I select a new record, the default value 'Mr' is
inserted..PLease help!!!

Sinu

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

Reply via email to