Explorar el Código

Added assert IP on OLT and the length of ip is 15 now, was with 50.

Jean Sumara Leopoldo hace 4 años
padre
commit
6bb3434fc6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/FTTHBundle/Entity/OLT.php

+ 2 - 1
src/FTTHBundle/Entity/OLT.php

@@ -57,8 +57,9 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
     /**
      * @var string $ip
      *
-     * @ORM\Column(type="string", length=50, nullable=false, unique=true)
+     * @ORM\Column(type="string", length=15, nullable=false, unique=true)
      * @Assert\NotNull
+     * @Assert\Ip
      */
     protected $ip;