Hi everybody. Have a nice day.

Im following the Form guide from
http://docs.symfony-reloaded.org/master/guides/forms/overview.html

I have an entity named ContctRequest like this:

namespace ...;
class ContactRequest {

 .../*some attributes..

  /**
   * @validation:AssertType("boolean")
   */
   protected $ccmyself = false;

  /*... some others attributes and getters and setters...

  }

Then I have ContactForm which is configured to create fields automatically:

protected function configure()
    {
$this->setDataClass('Sensio\\HelloBundle\\Contact\\ContactRequest');
        $this->add('ccmyself');

     }

With this configuration, it is supposed to render a checkbox due to the
constraint AssertType("boolean"), but a TextField is rendered instead.
If I pass a new instance of ChoiceField It will render fine.

Other properties/attributes renders as expected (TextArea, TextField).

Is this a bug? Or am I missing something?

Thanks for any help!!

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