Validate used operators when creating tagging rules

This commit is contained in:
Kévin Gomez 2015-10-18 14:32:58 +02:00
parent 5a166c5c1a
commit c23fc05df8

View File

@ -28,7 +28,10 @@ class TaggingRule
* @var string
*
* @Assert\NotBlank()
* @RulerZAssert\ValidRule(allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"})
* @RulerZAssert\ValidRule(
* allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"},
* allowed_operators={">", "<", ">=", "<=", "=", "is", "!=", "and", "not", "or"}
* )
* @ORM\Column(name="rule", type="string", nullable=false)
*/
private $rule;