diff --git a/Resources/config/validation.yml b/Resources/config/validation.yml new file mode 100644 index 000000000..419f35a68 --- /dev/null +++ b/Resources/config/validation.yml @@ -0,0 +1,7 @@ +Chill\CustomFieldsBundle\Entity\CustomField: + properties: + slug: + - Regex: + pattern: '/^[0-9a-z\-]{1,}$/' + message: Characters not allowed. Only lowercase letters, numbers and "-" are allowed. + \ No newline at end of file diff --git a/Resources/translations/validators.fr.yml b/Resources/translations/validators.fr.yml new file mode 100644 index 000000000..afb6575ba --- /dev/null +++ b/Resources/translations/validators.fr.yml @@ -0,0 +1 @@ +Characters not allowed. Only lowercase letters, numbers and "-" are allowed.: Caractères non autorisés. Seules les lettres minuscules, les nombres et le tiret ("-") sont autorisés. \ No newline at end of file