Explorar el Código

Tag: le nom doit être unique: ajout dans @ORM\Column

bastien hace 13 años
padre
commit
3fc54479d9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Muzich/CoreBundle/Entity/Tag.php

+ 1 - 1
src/Muzich/CoreBundle/Entity/Tag.php Ver fichero

@@ -51,7 +51,7 @@ class Tag
51 51
   /**
52 52
    * Nom du tag
53 53
    * 
54
-   * @ORM\Column(type="string", length=64)
54
+   * @ORM\Column(type="string", length=64, unique=true)
55 55
    * @var type string
56 56
    */
57 57
   protected $name;