Browse Source

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

bastien 13 years ago
parent
commit
3fc54479d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Muzich/CoreBundle/Entity/Tag.php

+ 1 - 1
src/Muzich/CoreBundle/Entity/Tag.php View File

@@ -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;