/** * @param BlockInterface $block * * @return BlockManager */ public function save(BlockInterface $block) { $block->setRootVersion($this->getNewVersion($block)); $this->em->persist($block); $this->em->flush($block); return $this; }