mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-23 05:56:18 +00:00
Add naïve validation for tagging rules (only checks the syntax)
This commit is contained in:
parent
71ef0ed254
commit
3447d1ee07
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Entity;
|
||||||
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Component\Validator\Constraints as Assert;
|
use Symfony\Component\Validator\Constraints as Assert;
|
||||||
|
use KPhoen\RulerZBundle\Validator\Constraints as RulerZAssert;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Config.
|
* Config.
|
||||||
|
@ -27,6 +28,7 @@ class TaggingRule
|
||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @Assert\NotBlank()
|
* @Assert\NotBlank()
|
||||||
|
* @RulerZAssert\ValidRule()
|
||||||
* @ORM\Column(name="rule", type="string", nullable=false)
|
* @ORM\Column(name="rule", type="string", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $rule;
|
private $rule;
|
||||||
|
|
Loading…
Reference in a new issue