Category : checkbox

I don’t know how to validate a checkbox with a @Assert. Returns a string "1" if checked otherwise false Step 1: create a class: SearchPlayerData.php to test my data (without ORM) This form is not linked to a class <?php namespace AppEntity; use SymfonyComponentValidatorConstraints as Assert; class SearchPlayerData { /** * (length=255, nullable=true) * @Assert??? ..

Read more