forked from wallabag/wallabag
Add a validator on URL entity
This commit is contained in:
committed by
Jeremy Benoist
parent
3f491fe9ca
commit
67c5270fdc
@ -75,6 +75,9 @@ class Entry
|
||||
* @var string|null
|
||||
*
|
||||
* @Assert\NotBlank()
|
||||
* @Assert\Url(
|
||||
* message = "The url '{{ value }}' is not a valid url",
|
||||
* )
|
||||
* @ORM\Column(name="url", type="text", nullable=true)
|
||||
*
|
||||
* @Groups({"entries_for_user", "export_all"})
|
||||
|
||||
Reference in New Issue
Block a user