提交后,FOSUserBundle,PUGX包,SQL错误

时间:2014-07-23 12:12:58

标签: symfony fosuserbundle pugxmultiuserbundle

我已经配置了PUGXMultiUserBundle,因为它在文档中显示,当我尝试注册时,我得到一个错误,说实话我不知道,我应该在哪里寻找解决方案。

An exception occurred while executing 'SELECT t0.username AS username3,  t0.username_canonical AS username_canonical4, t0.email AS email5, 
t0.email_canonical AS email_canonical6, t0.enabled AS enabled7, t0.salt AS salt8, 
t0.password AS password9, t0.last_login AS last_login10, t0.locked AS locked11, 
t0.expired AS expired12, t0.expires_at AS expires_at13, t0.confirmation_token AS confirmation_token14,
t0.password_requested_at AS password_requested_at15, t0.roles AS roles16, t0.credentials_expired AS credentials_expired17, 
t0.credentials_expire_at AS credentials_expire_at18, t0.id AS id19, 
t0.type FROM fill_user t0 LEFT JOIN user_one t1 ON t0.id = t1.id 
LEFT JOIN user_two t2 ON t0.id = t2.id WHERE t0.username = ?' with params ["asd"]:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.type' in 'field list'

1 个答案:

答案 0 :(得分:2)

正如您在最后一行中所读到的那样,它表示fill_user表没有type列。

您可能还没有更新数据库架构。为此,请运行控制台工具:

app/console doctrine:schema:update