Answer the question
In order to leave comments, you need to log in
How to fix validation in symfony?
in entity
/**
* @Assert\Regex("/^[а-яА-ЯёЁa-zA-Z0-9]+$/")
* @Assert\NotBlank()
* @ORM\Column(name="name", type="string", length=255)
*/
public $name;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question