@@ -31,6 +31,10 @@ class Node
*/
private $name;
+ /**
+ * @ORM\OneToMany(targetEntity="ONU", mappedBy="node")
+ */
+ protected $onus;
/**
* @return string
@@ -31,6 +31,10 @@ class ONUModel
+ * @ORM\OneToMany(targetEntity="ONU", mappedBy="model")
@@ -2,16 +2,8 @@
namespace FTTHBundle\Entity;
-use Doctrine\ORM\Mapping as ORM;
-
trait ONUTrait
-{
- /**
- * @ORM\OneToMany(targetEntity="ONU", mappedBy="node")
- */
- protected $onus;
+{
* @param ONU $onu
@@ -45,6 +45,11 @@ class Profile
private $download;
+ * @ORM\OneToMany(targetEntity="ONU", mappedBy="profile")
+