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