I am integrating fileupload system with fosuserbundle
I need to override updateUser function in
/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Doctrine/UserManager.php
I copied this file to
/ACME/UserBundle/Doctrine/UserManager.php
But it doesn't work.
This is my temporary /vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Doctrine/UserManager.php
public function updateUser(UserInterface $user, $andFlush = true)
{
$this->updateCanonicalFields($user);
$this->updatePassword($user);
//it works but it should not be used here.
$user->upload();
//
$this->objectManager->persist($user);
if ($andFlush) {
$this->objectManager->flush();
}
}