public function setPanelEditable(PanelFacet $panel, $bool) { $panel->setIsEditable($bool); $this->om->persist($panel); $this->om->flush(); }