Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit403563f

Browse files
committed
minor#21562 [Validator][Validation] : Adding missinguse (ThomasLandauer)
This PR was merged into the 6.4 branch.Discussion----------[Validator][Validation] : Adding missing `use`Page:https://symfony.com/doc/6.4/form/without_class.html#conditional-constraintsCommits-------28c55ea [Validation]: Adding missing `use`
2 parentse963782 +28c55ea commit403563f

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)

[8]ページ先頭

©2009-2025 Movatter.jp