Commit d473e6129785eb1e5e35bc93684c95c8db37abcf

Authored by Bruno Menezes
1 parent 1e7f63a4
Exists in master and in 1 other branch 3.1

acrescentando UniqueEntity

src/Cacic/CommonBundle/Resources/config/validation.yml
@@ -168,6 +168,8 @@ Cacic\CommonBundle\Entity\TipoSoftware: @@ -168,6 +168,8 @@ Cacic\CommonBundle\Entity\TipoSoftware:
168 max: 30 168 max: 30
169 169
170 Cacic\CommonBundle\Entity\UsbDevice: 170 Cacic\CommonBundle\Entity\UsbDevice:
  171 + constraints:
  172 + - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: [idUsbDevice]
171 properties: 173 properties:
172 idUsbVendor: 174 idUsbVendor:
173 - NotNull: ~ 175 - NotNull: ~