You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running this command: bin/console doctrine:fixtures:load -n
I get following error:
CRITICAL [console] Error thrown while running command "doctrine:fixtures:load -n". Message: "An exception occurred while executing 'INSERT INTO book (title, id) VALUES (?, ?)' with params ["In illo reprehenderit in.", "8c6b9b43-57c9-4d0c-8310-cbe163d7acd4"]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '8c6b9b43-57c9-4d0c-8310-cbe163d7acd4' for key 'book.PRIMARY'" ["exception" => Doctrine\DBAL\Exception\UniqueConstraintViolationException^ { …},"command" => "doctrine:fixtures:load -n","message" => """ An exception occurred while executing 'INSERT INTO book (title, id) VALUES (?, ?)' with params ["In illo reprehenderit in.", "8c6b9b43-57c9-4d0c-8310-cbe163d7acd4"]:\n \n SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '8c6b9b43-57c9-4d0c-8310-cbe163d7acd4' for key 'book.PRIMARY' """]
As you can see the id is uuid, so there is no chance for duplicate, but I get an error that it is duplicated.
May you let me know why I am getting this type of error?
The text was updated successfully, but these errors were encountered:
My fixture file looks like:
CreateBook
command looks like this:And handler for that command:
After running this command:
bin/console doctrine:fixtures:load -n
I get following error:
As you can see the id is uuid, so there is no chance for duplicate, but I get an error that it is duplicated.
May you let me know why I am getting this type of error?
The text was updated successfully, but these errors were encountered: