Commit d473e6129785eb1e5e35bc93684c95c8db37abcf
1 parent
1e7f63a4
Exists in
master
and in
1 other branch
acrescentando UniqueEntity
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
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: ~ |