/** * @param BlockInterface $block */ public function remove(BlockInterface $block, $draft = true) { $block->setDraft($draft); $this->em->remove($block); $this->em->flush($block); }