Skip to content

Commit 28c55ea

Browse files
1 parent e963782 commit 28c55ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

form/without_class.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ fields (e.g. a field must not be blank when another field has a certain value).
186186
To achieve this, use the ``expression`` option of the
187187
:doc:`When constraint </reference/constraints/When>` to reference the other field::
188188

189+
use Symfony\Component\Validator\Constraints as Assert;
190+
189191
$builder
190192
->add('how_did_you_hear', ChoiceType::class, [
191193
'required' => true,

0 commit comments

Comments
 (0)