public function __construct($nodeName) { $this->nodeName = $nodeName; $this->domains = new ArrayCollection(); }