at least one checkbox selected Symfony2
Try putting the Count
constraint on the field holding the collection:
use Symfony\Component\Validator\Constraints\Count;class Entity { /** * @Count(min = 1, minMessage = "At least one item must be selected") */ private $collection; // ...}