|
@@ -6,7 +6,6 @@ use Base\AdminBundle\Traits\TenancyIdTrait;
|
|
|
use Base\AdminBundle\Traits\TenancyIdTraitInterface;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
use ExtraDataBundle\Entity\Traits\ExtraDataTrait;
|
|
|
-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;
|
|
@@ -17,6 +16,8 @@ use MapBundle\Entity\Interfaces\LocationInterface;
|
|
|
use MapBundle\Entity\Traits\LocationTrait;
|
|
|
use WorkflowBundle\Entity\Interfaces\WorkflowInterface;
|
|
|
use WorkflowBundle\Entity\Traits\WorkflowTrait;
|
|
|
+use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity as SoftDeleteable;
|
|
|
+use Gedmo\Mapping\Annotation as Gedmo;
|
|
|
|
|
|
/**
|
|
|
* ONU
|
|
@@ -35,6 +36,7 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
use TenancyIdTrait;
|
|
|
use LocationTrait;
|
|
|
use WorkflowTrait;
|
|
|
+ use SoftDeleteable;
|
|
|
|
|
|
/**
|
|
|
* @var int
|
|
@@ -150,11 +152,6 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
*/
|
|
|
private $position = 0;
|
|
|
|
|
|
- /**
|
|
|
- * @ORM\Column(name="deletedAt", type="datetime", nullable=true)
|
|
|
- */
|
|
|
- private $deletedAt;
|
|
|
-
|
|
|
/**
|
|
|
* @return string
|
|
|
*/
|
|
@@ -173,6 +170,20 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
return $this->id;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Get id
|
|
|
+ *
|
|
|
+ * @param int
|
|
|
+ *
|
|
|
+ * @return ONU
|
|
|
+ */
|
|
|
+ public function setId($id)
|
|
|
+ {
|
|
|
+ $this->id = $id;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Set ip
|
|
|
*
|
|
@@ -303,6 +314,20 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
return $this->created;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Set created
|
|
|
+ *
|
|
|
+ * @param \DateTime
|
|
|
+ *
|
|
|
+ * @return ONU
|
|
|
+ */
|
|
|
+ public function setCreated($d)
|
|
|
+ {
|
|
|
+ $this->created = $d;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* Get updated
|
|
|
*
|
|
@@ -540,27 +565,4 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
return $deviceData;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Get deletedAt
|
|
|
- *
|
|
|
- * @return \DateTime
|
|
|
- */
|
|
|
- public function getDeletedAt()
|
|
|
- {
|
|
|
- return $this->deletedAt;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Set deletedAt
|
|
|
- * @param \DateTime $deletedAt
|
|
|
- *
|
|
|
- */
|
|
|
- public function setDeletedAt($deletedAt)
|
|
|
- {
|
|
|
- $this->deletedAt = $deletedAt;
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|