/** * @param ContentInterface $content */ public function restore($content) { $contents = $this->contentRepository->findByContentId($content->getContentId()); /** @var ContentInterface $content */ foreach ($contents as $content) { $content->setDeleted(false); } $this->eventDispatcher->dispatch(ContentEvents::CONTENT_RESTORE, new ContentEvent($content)); }