public function updatePostViewCount($post)
    {
        $post->increaseViewCounter();
        $this->om->persist($post);
        $this->om->flush();
    }
public function updatePostViewCount($post)
    {
        $post->increaseViewCounter();
        $this->om->persist($post);
        $this->om->flush();
    }
public function updatePostViewCount ( $ post ) { $ post -> increaseViewCounter ( ) ; $ this -> om -> persist ( $ post ) ; $ this -> om -> flush ( ) ; }
Update post view count.

@param Blog $blog
@param Post $post
@param User $user
Update post view count .