Symfony给我一个"语法错误或访问冲突"

时间:2015-07-19 21:08:29

标签: symfony

所有都在主题中,我没有找到语法错​​误,你能帮助我吗?

INSERT INTO user (username, username_canonical, email, email_canonical, enabled, salt, password, last_login, locked, expired, expires_at, confirmation_token, password_requested_at, roles, credentials_expired, credentials_expire_at, firstname, lastname, key) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["foo", "foo", "foo@bar.com", "foo@bar.com", 0, "salt", "password", null, 0, 0, null, null, null, "a:0:{}", 0, null, "data", "data", "apikey"]

此请求由Symfony Doctrine的基本持久实体

执行

此致

1 个答案:

答案 0 :(得分:0)

key列重命名为其他内容。顺便说一下,如果在Entity类中这样做,它就不起作用。首先,您需要手动重命名DB中的列。