|
@@ -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
|
|
{
|
|
{
|