Add naïve validation for tagging rules (only checks the syntax)

This commit is contained in:
Kévin Gomez 2015-10-14 22:48:58 +02:00
parent 71ef0ed254
commit 3447d1ee07

View file

@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use KPhoen\RulerZBundle\Validator\Constraints as RulerZAssert;
/**
* Config.
@ -27,6 +28,7 @@ class TaggingRule
* @var string
*
* @Assert\NotBlank()
* @RulerZAssert\ValidRule()
* @ORM\Column(name="rule", type="string", nullable=false)
*/
private $rule;