We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb08d7d commit 37bf9e4Copy full SHA for 37bf9e4
guides/forms/overview.rst
@@ -267,6 +267,8 @@ accepting terms and conditions.
267
268
Let's create a simple ``Registration`` class for this purpose::
269
270
+ namespace Application\HelloBundle\Entity;
271
+
272
class Registration
273
{
274
/** @validation:Valid */
@@ -284,6 +286,10 @@ Let's create a simple ``Registration`` class for this purpose::
284
286
Now we can easily adapt the form in the controller::
285
287
288
# src/Application/HelloBundle/Controller/HelloController.php
289
290
+ use Application\HelloBundle\Entity\Registration;
291
+ use Symfony\Component\Form\CheckboxField;
292
293
public function signupAction()
294
295
$registration = new Registration();
0 commit comments