所有都在主题中,我没有找到语法错误,你能帮助我吗?
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的基本持久实体
执行此致
答案 0 :(得分:0)
将key
列重命名为其他内容。顺便说一下,如果在Entity类中这样做,它就不起作用。首先,您需要手动重命名DB中的列。