Browse Source

Device ONU

Guillermo Espinoza 8 years ago
parent
commit
9c8233b994
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/FTTHBundle/Entity/ONU.php

+ 4 - 0
src/FTTHBundle/Entity/ONU.php

@@ -9,6 +9,8 @@ use Gedmo\Mapping\Annotation as Gedmo;
 use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
 use Symfony\Component\Validator\Constraints as Assert;
 use Symfony\Component\Workflow\Exception\ExceptionInterface;
+use DeviceBundle\Validator\Constraints as ValidatorAssert;
+use DeviceBundle\Interfaces\DeviceInterface;
 
 /**
  * ONU
@@ -17,6 +19,8 @@ use Symfony\Component\Workflow\Exception\ExceptionInterface;
  * @ORM\HasLifecycleCallbacks
  * @UniqueEntity(fields={"ponSerialNumber", "tenancyId"}, message="errors.duplicate_key")
  * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="unique_idx", columns={"pon_serial_number", "tenancy_id"})})
+ * 
+ * @ValidatorAssert\Device
  */
 class ONU
 {