Validate used operators when creating tagging rules
This commit is contained in:
parent
5a166c5c1a
commit
c23fc05df8
@ -28,7 +28,10 @@ class TaggingRule
|
|||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @Assert\NotBlank()
|
* @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)
|
* @ORM\Column(name="rule", type="string", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $rule;
|
private $rule;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user