You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using FOS_UserBundle and I'm trying to load some users from my database. I'm also using fos_oauth. Hower, sending an POST to my oauth token endpoint results in an error:
{
"code": 500,
"message": "Attempted to load class \"PropelQuery\" from the global namespace.\nDid you forget a \"use\" statement for \"Propel\\Runtime\\ActiveQuery\\PropelQuery\"?",
"errors": null
}
in friendsofsymfony/user-bundle/Propel/UserManager.php line 114
My fos user config:
fos_user:
db_driver: propel
user_class: ApiBundle\Model\Acl\Customer\Customer
firewall_name: api
From the propel UserManager (FOS\UserBundle\Propel\UserManager)
protected function createQuery()
{
return \PropelQuery::from($this->class); // There is no \PropelQuery in the global namespace
}
If I use the correct use statement in the header of the file, everything is working as expected:
use Propel\Runtime\ActiveQuery\PropelQuery;
The text was updated successfully, but these errors were encountered:
Hey,
I'm using FOS_UserBundle and I'm trying to load some users from my database. I'm also using fos_oauth. Hower, sending an POST to my oauth token endpoint results in an error:
POST /oauth/token
results in the following error:
in friendsofsymfony/user-bundle/Propel/UserManager.php line 114
My fos user config:
From the propel UserManager (FOS\UserBundle\Propel\UserManager)
If I use the correct use statement in the header of the file, everything is working as expected:
The text was updated successfully, but these errors were encountered: