Bläddra i källkod

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

Jean Sumara Leopoldo 4 år sedan
förälder
incheckning
6bb3434fc6
1 ändrade filer med 2 tillägg och 1 borttagningar
  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;