I am trying to use FOSOAuthServerBundle with MongoDB -> my repo
I have a problem with authentication. To be more precisious
if I try to get current logged user with $this->getUser() it returns null
I noticed that in AccessToken document user is missing
while the same table (but in MySQL) contains this information and $this->getUser() returns user object.
I would notice that first I have configured this repo to use MySQL as the database, next I have changed doctrine orm to odm so I could use MongoDB but after changing to Mongo I have a problem like above.
Hi,
I am trying to use FOSOAuthServerBundle with MongoDB -> my repo
I have a problem with authentication. To be more precisious
if I try to get current logged user with
$this->getUser()
it returns null I noticed that in AccessToken documentuser
is missingwhile the same table (but in MySQL) contains this information and
$this->getUser()
returns user object.I would notice that first I have configured this repo to use MySQL as the database, next I have changed doctrine orm to odm so I could use MongoDB but after changing to Mongo I have a problem like above.
Have I missed something in the configuration?