Преглед на файлове

Ajout de la contrainte de type Url sur l'attribut url de l'entité Element.

bastien преди 13 години
родител
ревизия
8dd47e90e8
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/Muzich/CoreBundle/Entity/Element.php

+ 1 - 0
src/Muzich/CoreBundle/Entity/Element.php Целия файл

@@ -77,6 +77,7 @@ class Element
77 77
    * @ORM\Column(type="string", length=1024)
78 78
    * @Assert\NotBlank()
79 79
    * @Assert\MaxLength(1024)
80
+   * @Assert\Url()
80 81
    * @var type string
81 82
    */
82 83
   protected $url;