|
@@ -57,12 +57,14 @@ class Cablemodem implements DeviceInterface, TenancyIdTraitInterface, LocationIn
|
|
|
/**
|
|
|
* @var string $mac
|
|
|
*
|
|
|
- * @ORM\Column(type="string", length=12, nullable=true, unique=true)
|
|
|
+ * @ORM\Column(type="string", length=12, nullable=false, unique=true)
|
|
|
*
|
|
|
* @Gedmo\Versioned
|
|
|
*
|
|
|
* @Assert\Regex(pattern="/^[a-z0-9]+$/")
|
|
|
* @Assert\Length(min=12, max=12)
|
|
|
+ * @Assert\NotBlank()
|
|
|
+ * @Assert\NotNull
|
|
|
*/
|
|
|
protected $mac;
|
|
|
|