|
@@ -3,6 +3,7 @@
|
|
|
namespace IPv4Bundle\Entity;
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
+use JMS\Serializer\Annotation as JMS;
|
|
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
|
|
use IPv4Bundle\Traits\DHCPOptionTrait;
|
|
|
|
|
@@ -46,13 +47,15 @@ class Host
|
|
|
*
|
|
|
* @ORM\ManyToOne(targetEntity="HostType", inversedBy="hosts")
|
|
|
* @ORM\JoinColumn(onDelete="CASCADE")
|
|
|
+ *
|
|
|
+ * @JMS\MaxDepth(1)
|
|
|
*/
|
|
|
protected $hostType;
|
|
|
|
|
|
/**
|
|
|
* @var string $state
|
|
|
*
|
|
|
- * @ORM\Column(type="string")
|
|
|
+ * @ORM\Column(type="string", options={"default": "active"})
|
|
|
*/
|
|
|
protected $state = self::STATE_ACTIVE;
|
|
|
|