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