|
@@ -99,6 +99,13 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
*/
|
|
|
protected $onus;
|
|
|
|
|
|
+ /**
|
|
|
+ * @ORM\OneToMany(targetEntity="NAP", mappedBy="olt", fetch="EXTRA_LAZY")
|
|
|
+ *
|
|
|
+ * @JMS\MaxDepth(2)
|
|
|
+ */
|
|
|
+ protected $naps;
|
|
|
+
|
|
|
/**
|
|
|
* @ORM\Column(type="string", nullable=true)
|
|
|
*/
|
|
@@ -289,6 +296,38 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
return $this->onus;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param NAP $nap
|
|
|
+ *
|
|
|
+ * @return OLT
|
|
|
+ */
|
|
|
+ public function addNap(NAP $nap)
|
|
|
+ {
|
|
|
+ $this->naps[] = $nap;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param NAP $nap
|
|
|
+ *
|
|
|
+ * @return OLT
|
|
|
+ */
|
|
|
+ public function removeNap(NAP $nap)
|
|
|
+ {
|
|
|
+ $this->naps->removeElement($nap);
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return Doctrine\Common\Collections\Collection
|
|
|
+ */
|
|
|
+ public function getNaps()
|
|
|
+ {
|
|
|
+ return $this->naps;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @return OLTModel
|
|
|
*/
|