Explorar o código

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

Jean Sumara Leopoldo %!s(int64=4) %!d(string=hai) anos
pai
achega
6bb3434fc6
Modificáronse 1 ficheiros con 2 adicións e 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;