public function buildForm(FormBuilder $builder, array $options)
 {
     $builder
         ->add('driver', 'choice', array('choices' => DoctrineStep::getDrivers()))
         ->add('name', 'text')
         ->add('host', 'text')
         ->add('user', 'text')
         ->add('password', 'repeated', array(
             'required' => false,
             'type' => 'password',
             'first_name' => 'Password',
             'second_name' => 'Password again',
         ))
     ;
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('driver', 'choice', array('choices' => DoctrineStep::getDrivers()))->add('name', 'text', array('required' => false))->add('host', 'text', array('required' => false))->add('path', 'text', array('required' => false))->add('port', 'text', array('required' => false))->add('user', 'text', array('required' => false))->add('password', 'repeated', array('required' => false, 'type' => 'password', 'first_name' => 'password', 'second_name' => 'password_again', 'invalid_message' => 'The password fields must match.'));
 }