add('login', 'text', array( 'label' => _('Login'), 'required' => true, 'disabled' => $options['disabled'], 'constraints' => array( new Assert\NotBlank(), ), )); $builder->add('password', 'password', array( 'label' => _('Password'), 'required' => true, 'disabled' => $options['disabled'], 'constraints' => array( new Assert\NotBlank(), ), )); } public function getName() { return null; } }