public function setParentInstance(EntryPoint $parentInstance = null) { $this->parentInstance = $parentInstance; $this->setBundle($parentInstance->getBundle()); }