public function delete(OutputSettingsSection $outputSettingsSection) { $em = $this->getManager(); $em->remove($outputSettingsSection); $em->flush(); }