浏览代码

Device ONU

Guillermo Espinoza 8 年之前
父节点
当前提交
9c8233b994
共有 1 个文件被更改,包括 4 次插入0 次删除
  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\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
 use Symfony\Component\Validator\Constraints as Assert;
 use Symfony\Component\Validator\Constraints as Assert;
 use Symfony\Component\Workflow\Exception\ExceptionInterface;
 use Symfony\Component\Workflow\Exception\ExceptionInterface;
+use DeviceBundle\Validator\Constraints as ValidatorAssert;
+use DeviceBundle\Interfaces\DeviceInterface;
 
 
 /**
 /**
  * ONU
  * ONU
@@ -17,6 +19,8 @@ use Symfony\Component\Workflow\Exception\ExceptionInterface;
  * @ORM\HasLifecycleCallbacks
  * @ORM\HasLifecycleCallbacks
  * @UniqueEntity(fields={"ponSerialNumber", "tenancyId"}, message="errors.duplicate_key")
  * @UniqueEntity(fields={"ponSerialNumber", "tenancyId"}, message="errors.duplicate_key")
  * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="unique_idx", columns={"pon_serial_number", "tenancy_id"})})
  * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="unique_idx", columns={"pon_serial_number", "tenancy_id"})})
+ * 
+ * @ValidatorAssert\Device
  */
  */
 class ONU
 class ONU
 {
 {