Hi!

I have a problem with data fixtures, please help me! I have some data
fixture files with relations and some users in the users.yml. I would
like to set a fix ID for the superadministrator user. The superadmin
definition is the first in the users.yml, however it gets the #3, I
don't know why...

User:
  superadmin:
    id: "1"
    name: Superadmin
    email: r...@root.hu
    login: "1"
    deleted: "1"

  other users...

I got SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate
entry '1' for key 'PRIMARY' error, when i add the "id: 1" row to the
definition. How can I solve this? How can I set a fix id for the
superadministrator?


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to