Also validate used variables when creating tagging rules

This commit is contained in:
Kévin Gomez 2015-10-17 16:57:41 +02:00
parent 3447d1ee07
commit 1dc4e5da2e

View file

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