Skip to content

How to use an Assert by annotation in an InputType with Symfony? #525

Answered by oojacoboo
michilehr asked this question in Q&A
Discussion options

You must be logged in to vote

@michilehr Is the validator property executing your assertions? Do you have Doctrine annotations setup to read @Assert? What version of PHP are you using? You should probably try to start using attributes and not phpdoc annotations with Doctrine.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@michilehr
Comment options

Answer selected by michilehr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants