简体   繁体   English

SonataUserBundle无法登录

[英]SonataUserBundle can't login

I'm facing an error with SonataUserBundle. 我在使用SonataUserBundle时遇到错误。 All is well configured. 一切都配置得很好。 I use a custom entity for User and Group but nothing complicated (just add some string informations in the table) 我为User和Group使用自定义实体但没有任何复杂(只需在表中添加一些字符串信息)

When i try to login on /admin with a user create trough console i got this error: 当我尝试使用用户创建槽控制台登录/ admin时出现此错误:

An exception occurred while executing 'SELECT t0.name AS name_1, t0.roles AS roles_2, t0.id AS id_3 FROM group t0 INNER JOIN user_group ON t0.id = user_group.group_id WHERE user_group.user_id = ?' with params [1]:

SQLSTATE[42000]: Syntax error or access violation: 1064 Erreur de syntaxe près de 'group t0 INNER JOIN user_group ON t0.id = user_group.group_id WHERE user_group.u' à la ligne 1

I already checked the configuration seems good, entity are ok too ... 我已经检查过配置似乎不错,实体也可以......

Is someone else facing this error too ? 其他人是否也面临这个错误?

Thank you for your help, 谢谢您的帮助,

Have a nice day 祝你今天愉快

是我的错我命名为表组,但是保留了...在更改名称后立即工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM