php - NotBlank constraint for all input fields in Symfony 6

one text

Hi every one i would like to know if there is a solution for using one constraint to validate all input fields form, without doing duplicate this before every property like below :

    #[ORM\Column(length: 255)]
    #[Assert\NotBlank()]
    private ?string $name = null;

    #[Assert\NotBlank()]
    private ?float $price = null;

i want to apply constraint NotBlank for all inputs thaht i have in form

Source