Limit rule to 255

To avoid database error
This commit is contained in:
Jeremy Benoist
2016-12-03 11:10:39 +01:00
parent 1093e979ff
commit 5aa0294cca
2 changed files with 24 additions and 0 deletions

View File

@ -28,6 +28,7 @@ class TaggingRule
* @var string
*
* @Assert\NotBlank()
* @Assert\Length(max=255)
* @RulerZAssert\ValidRule(
* allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"},
* allowed_operators={">", "<", ">=", "<=", "=", "is", "!=", "and", "not", "or", "matches"}