We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a26db commit 5f68cf7Copy full SHA for 5f68cf7
src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityTest.php
@@ -63,6 +63,13 @@ public function testAttributeWithGroupsAndPaylod()
63
self::assertSame('some attached data', $constraint->payload);
64
self::assertSame(['some_group'], $constraint->groups);
65
}
66
+
67
+ public function testValueOptionConfiguresFields()
68
+ {
69
+ $constraint = new UniqueEntity(['value' => 'email']);
70
71
+ $this->assertSame('email', $constraint->fields);
72
+ }
73
74
75
#[UniqueEntity(['email'], message: 'myMessage')]
0 commit comments