|
@@ -5,20 +5,24 @@ namespace CablemodemBundle\Entity;
|
|
|
use Base\AdminBundle\Traits\TenancyIdTrait;
|
|
|
use Base\AdminBundle\Traits\TenancyIdTraitInterface;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
+use ExtraDataBundle\Entity\Traits\ExtraDataTrait;
|
|
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
|
|
/**
|
|
|
* @ORM\Entity
|
|
|
* @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="unique_idx", columns={"name","tenancy_id"})})
|
|
|
- *
|
|
|
+ *
|
|
|
* @UniqueEntity(fields={"tenancyId","name"})
|
|
|
*/
|
|
|
class Profile implements TenancyIdTraitInterface
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
use TenancyIdTrait;
|
|
|
|
|
|
+ use ExtraDataTrait;
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* @var bigint $id
|
|
|
*
|
|
@@ -30,9 +34,9 @@ class Profile implements TenancyIdTraitInterface
|
|
|
|
|
|
/**
|
|
|
* @var string $name
|
|
|
- *
|
|
|
+ *
|
|
|
* @ORM\Column(name="name", type="string", length=100)
|
|
|
- *
|
|
|
+ *
|
|
|
* @Assert\NotNull
|
|
|
* @Assert\Regex(
|
|
|
* pattern="/[\w\s\d]+/",
|
|
@@ -44,35 +48,35 @@ class Profile implements TenancyIdTraitInterface
|
|
|
|
|
|
/**
|
|
|
* @var bigint $downstream
|
|
|
- *
|
|
|
+ *
|
|
|
* @ORM\Column(type="bigint", nullable=true)
|
|
|
*/
|
|
|
protected $downstream;
|
|
|
|
|
|
/**
|
|
|
* @var bigint $upstream
|
|
|
- *
|
|
|
+ *
|
|
|
* @ORM\Column(type="bigint", nullable=true)
|
|
|
*/
|
|
|
protected $upstream;
|
|
|
|
|
|
/**
|
|
|
* @var bigint $filtroUpload
|
|
|
- *
|
|
|
+ *
|
|
|
* @ORM\Column(type="bigint", nullable=true)
|
|
|
*/
|
|
|
protected $filtroUpload;
|
|
|
|
|
|
/**
|
|
|
* @var bigint $filtroDownload
|
|
|
- *
|
|
|
+ *
|
|
|
* @ORM\Column(type="bigint", nullable=true)
|
|
|
*/
|
|
|
protected $filtroDownload;
|
|
|
|
|
|
/**
|
|
|
* @var bigint $maxCpe
|
|
|
- *
|
|
|
+ *
|
|
|
* @ORM\Column(type="bigint", nullable=true)
|
|
|
*/
|
|
|
protected $maxCpe;
|
|
@@ -117,7 +121,7 @@ class Profile implements TenancyIdTraitInterface
|
|
|
{
|
|
|
return $this->upstream;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @return bigint
|
|
|
*/
|
|
@@ -125,7 +129,7 @@ class Profile implements TenancyIdTraitInterface
|
|
|
{
|
|
|
return $this->filtroUpload;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @return bigint
|
|
|
*/
|
|
@@ -133,7 +137,7 @@ class Profile implements TenancyIdTraitInterface
|
|
|
{
|
|
|
return $this->filtroDownload;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @return bigint
|
|
|
*/
|
|
@@ -144,7 +148,7 @@ class Profile implements TenancyIdTraitInterface
|
|
|
|
|
|
/**
|
|
|
* @param string $name
|
|
|
- *
|
|
|
+ *
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function setName($name)
|
|
@@ -156,7 +160,7 @@ class Profile implements TenancyIdTraitInterface
|
|
|
|
|
|
/**
|
|
|
* @param bigint $downstream
|
|
|
- *
|
|
|
+ *
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function setDownstream($downstream)
|
|
@@ -165,10 +169,10 @@ class Profile implements TenancyIdTraitInterface
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @param bigint $upstream
|
|
|
- *
|
|
|
+ *
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function setUpstream($upstream)
|
|
@@ -180,7 +184,7 @@ class Profile implements TenancyIdTraitInterface
|
|
|
|
|
|
/**
|
|
|
* @param bigint $filtroUpload
|
|
|
- *
|
|
|
+ *
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function setFiltroUpload($filtroUpload)
|
|
@@ -192,7 +196,7 @@ class Profile implements TenancyIdTraitInterface
|
|
|
|
|
|
/**
|
|
|
* @param bigint $filtroDownload
|
|
|
- *
|
|
|
+ *
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function setFiltroDownload($filtroDownload)
|
|
@@ -204,7 +208,7 @@ class Profile implements TenancyIdTraitInterface
|
|
|
|
|
|
/**
|
|
|
* @param bigint $maxCpe
|
|
|
- *
|
|
|
+ *
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function setMaxCpe($maxCpe)
|