1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Add a validator on URL entity

This commit is contained in:
Nicolas Lœuillet 2023-08-29 14:17:53 +02:00 committed by Jeremy Benoist
parent 3f491fe9ca
commit 67c5270fdc
No known key found for this signature in database
GPG key ID: 7168D5DD29F38552
5 changed files with 78 additions and 5 deletions

View file

@ -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"})