[Bridge][Doctrine] Fix missing dot in unique entity error message
This commit is contained in:
parent
adf07f1e53
commit
395004c03f
@ -127,7 +127,7 @@ class UniqueValidatorTest extends DoctrineOrmTestCase
|
|||||||
$this->assertEquals(1, $violationsList->count(), "No violations found on entity after it was saved to the database.");
|
$this->assertEquals(1, $violationsList->count(), "No violations found on entity after it was saved to the database.");
|
||||||
|
|
||||||
$violation = $violationsList[0];
|
$violation = $violationsList[0];
|
||||||
$this->assertEquals('This value is already used', $violation->getMessage());
|
$this->assertEquals('This value is already used.', $violation->getMessage());
|
||||||
$this->assertEquals('name', $violation->getPropertyPath());
|
$this->assertEquals('name', $violation->getPropertyPath());
|
||||||
$this->assertEquals('Foo', $violation->getInvalidValue());
|
$this->assertEquals('Foo', $violation->getInvalidValue());
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class UniqueEntity extends Constraint
|
class UniqueEntity extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is already used';
|
public $message = 'This value is already used.';
|
||||||
public $service = 'doctrine.orm.validator.unique';
|
public $service = 'doctrine.orm.validator.unique';
|
||||||
public $em = null;
|
public $em = null;
|
||||||
public $fields = array();
|
public $fields = array();
|
||||||
|
Reference in New Issue
Block a user