Просмотр исходного кода

merged branch Tobion/patch-2 (PR #2406)

Commits
-------

c736436 fixed language in test
2009249 fixed language

Discussion
----------

Fixed small language error
Fabien Potencier 13 лет назад
Родитель
Сommit
54211a94f6

+ 1 - 1
src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php

@@ -75,7 +75,7 @@ class UniqueEntityValidator extends ConstraintValidator
 
 
                 if (count($relatedId) > 1) {
                 if (count($relatedId) > 1) {
                     throw new ConstraintDefinitionException(
                     throw new ConstraintDefinitionException(
-                        "Associated entities are not allowed have more than one identifier field to be " .
+                        "Associated entities are not allowed to have more than one identifier field to be " .
                         "part of a unique constraint in: " . $class->name . "#" . $fieldName
                         "part of a unique constraint in: " . $class->name . "#" . $fieldName
                     );
                     );
                 }
                 }

+ 1 - 1
tests/Symfony/Tests/Bridge/Doctrine/Validator/Constraints/UniqueValidatorTest.php

@@ -215,7 +215,7 @@ class UniqueValidatorTest extends DoctrineOrmTestCase
 
 
         $this->setExpectedException(
         $this->setExpectedException(
             'Symfony\Component\Validator\Exception\ConstraintDefinitionException',
             'Symfony\Component\Validator\Exception\ConstraintDefinitionException',
-            'Associated entities are not allowed have more than one identifier field'
+            'Associated entities are not allowed to have more than one identifier field'
         );
         );
         $violationsList = $validator->validate($associated);
         $violationsList = $validator->validate($associated);
     }
     }