src/PHPDish/Bundle/UserBundle/Service/UserManager.php
public function unFollowUser(UserInterface $user, UserInterface $follower)
    {
        $user->removeFollower($follower);
        $user->setFollowerCount($user->getFollowerCount() - 1);
        $follower->setFollowingCount($follower->getFollowingCount() - 1);
        $this->objectManager->persist($user);
        $this->objectManager->persist($follower);
        $this->objectManager->flush();

        return true;
    }
public function unFollowUser(UserInterface $user, UserInterface $follower)
    {
        $user->removeFollower($follower);
        $user->setFollowerCount($user->getFollowerCount() - 1);
        $follower->setFollowingCount($follower->getFollowingCount() - 1);
        $this->objectManager->persist($user);
        $this->objectManager->persist($follower);
        $this->objectManager->flush();

        return true;
    }
{@inheritdoc}