简体   繁体   中英

SQL error using FR3DLdapBundle and FOSUserBundle with Symfony 2.8

When I log out and try to log back in again, it gives me the same error:

(An exception occurred while executing 'INSERT INTO fos_user (username, username_canonical, email, email_canonical, enabled, salt, password, last_login, confirmation_token, password_requested_at, roles, dn, code_utilisateur) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [“riemann”, “riemann”, “riemann@ldap.forumsys.com”, “riemann@ldap.forumsys.com”, 1, null, “”, “2018-05-23 21:26:15”, null, null, “a:1:{i:0;s:9:\\”ROLE_USER\\”;}”, “uid=riemann,dc=example,dc=com”, null]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicata du champ 'riemann@ldap.forumsys.com' pour la clef 'UNIQ_957A6479A0D96FBF')

As if it is trying to insert at the places to update the user.

您需要更改链提供商的顺序。

providers: [fos_userbundle, fr3d_ldapbundle]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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