We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I made a project using Sonata Package with admin, media... user too implemeted with FOSUser.
I create a custom User Entity following your doc and before today's update it works fine.
Now my website throws me an 500 Internal Server Error and my php logger shows me this error:
Call to a member function getUser() on a non-object in vendors\sonata-project\user-bundle\Controller\SecurityFOSUser1Controller.php on line 29
The lane is:
$user = $this->container->get('security.context')->getToken()->getUser();
I think it happen when I try to open some controller that uses an entity linked to the user entity.
/** * @ORM\ManyToOne(targetEntity="\Application\Sonata\UserBundle\Entity\User") * @ORM\JoinColumn(name="author_id", referencedColumnName="id") */ private $user;
It doesnt throw me an error but the relation doesnt work in DB.
The text was updated successfully, but these errors were encountered:
can you rollback to the version of SonataUserBundle before and try again?
what does doctrine:mapping:info say?
doctrine:mapping:info
Sorry, something went wrong.
Closing, not enough info
No branches or pull requests
I made a project using Sonata Package with admin, media... user too implemeted with FOSUser.
I create a custom User Entity following your doc and before today's update it works fine.
Now my website throws me an 500 Internal Server Error and my php logger shows me this error:
Call to a member function getUser() on a non-object in vendors\sonata-project\user-bundle\Controller\SecurityFOSUser1Controller.php on line 29
The lane is:
I think it happen when I try to open some controller that uses an entity linked to the user entity.
It doesnt throw me an error but the relation doesnt work in DB.
The text was updated successfully, but these errors were encountered: