Pārlūkot izejas kodu

Merge branch 'ftth#68' into 'master'

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

See merge request interlink-sa/flowdat3/modules/ftth!206
Jean Sumara Leopoldo 4 gadi atpakaļ
vecāks
revīzija
48efc82e49
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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;