8000 merged branch widop/patch-1 (PR #4447) · beryllium/symfony@f15c9cd · GitHub
[go: up one dir, main page]

Skip to content

Commit f15c9cd

Browse files
committed
merged branch widop/patch-1 (PR symfony#4447)
Commits ------- 395004c [Bridge][Doctrine] Fix missing dot in unique entity error message Discussion ---------- [Bridge][Doctrine] Fix missing dot in unique entity error message Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: none Todo: none License of the code: MIT Documentation PR: none The translation message defined in the FrameworkExtraBundle defines the unique entity error message like that: ``This value is already used.`` but is defined without the dot in the Doctrine UniqueEntity validator. This PR fixes this issue. --------------------------------------------------------------------------- by travisbot at 2012-05-29T12:31:59Z This pull request [fails](http://travis-ci.org/symfony/symfony/builds/1464732) (merged 675c744c into adf07f1). --------------------------------------------------------------------------- by travisbot at 2012-05-29T14:24:48Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1465598) (merged 395004c into adf07f1).
2 parents d1b775f + 395004c commit f15c9cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function testValidateUniqueness()
127127
$this->assertEquals(1, $violationsList->count(), "No violations found on entity after it was saved to the database.");
128128

129129
$violation = $violationsList[0];
130-
$this->assertEquals('This value is already used', $violation->getMessage());
130+
$this->assertEquals('This value is already used.', $violation->getMessage());
131131
$this->assertEquals('name', $violation->getPropertyPath());
132132
$this->assertEquals('Foo', $violation->getInvalidValue());
133133
}

src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class UniqueEntity extends Constraint
2323
{
24-
public $message = 'This value is already used';
24+
public $message = 'This value is already used.';
2525
public $service = 'doctrine.orm.validator.unique';
2626
public $em = null;
2727
public $fields = array();

0 commit comments

Comments
 (0)
0