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