瀏覽代碼

fixed Doctrine configuration form

Fabien Potencier 14 年之前
父節點
當前提交
41d1fcc774
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      Configurator/Form/DoctrineStepType.php

+ 5 - 4
Configurator/Form/DoctrineStepType.php

@@ -30,10 +30,11 @@ class DoctrineStepType extends AbstractType
             ->add('host', 'text')
             ->add('host', 'text')
             ->add('user', 'text')
             ->add('user', 'text')
             ->add('password', 'repeated', array(
             ->add('password', 'repeated', array(
-                'required' => false,
-                'type' => 'password',
-                'first_name' => 'Password',
-                'second_name' => 'Password again',
+                'required'        => false,
+                'type'            => 'password',
+                'first_name'      => 'password',
+                'second_name'     => 'password_again',
+                'invalid_message' => 'The password fields must match.',
             ))
             ))
         ;
         ;
     }
     }