/** * {@inheritDoc} */ public function doDeletePost(PostInterface $post) { $post->setIsDeleted(true); $this->em->persist($post); $this->em->flush(); }
public function __construct(PostInterface $post) { parent::__construct($post->getTopic()); $this->post = $post; }