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.
2 parents 2e37fd5 + 403563f commit e528343Copy full SHA for e528343
form/without_class.rst
@@ -186,6 +186,8 @@ fields (e.g. a field must not be blank when another field has a certain value).
186
To achieve this, use the ``expression`` option of the
187
:doc:`When constraint </reference/constraints/When>` to reference the other field::
188
189
+ use Symfony\Component\Validator\Constraints as Assert;
190
+
191
$builder
192
->add('how_did_you_hear', ChoiceType::class, [
193
'required' => true,
0 commit comments