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
Just installed Sylius and getting this error while running install command
In UnitOfWork.php line 1637:
[RuntimeException]
While adding an entity of class App\Entity\Locale\Locale with an ID hash of "1" to the identity map,
another object of class App\Entity\Locale\Locale was already present for the same ID. This exception
is a safeguard against an internal inconsistency - IDs should uniquely map to
entity object instances. This problem may occur if:
- you use application-provided IDs and reuse ID values;
- database-provided IDs are reassigned after truncating the database without
clearing the EntityManager;
- you might have been using EntityManager#getReference() to create a reference
for a nonexistent ID that was subsequently (by the RDBMS) assigned to another
entity.
Otherwise, it might be an ORM-internal inconsistency, please report it.
Exception trace:
at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1637
Doctrine\ORM\UnitOfWork->addToIdentityMap() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:3888
Doctrine\ORM\UnitOfWork->assignPostInsertId() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:286
Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1177
Doctrine\ORM\UnitOfWork->executeInserts() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:442
Doctrine\ORM\UnitOfWork->commit() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:403
Doctrine\ORM\EntityManager->flush() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Fixture/LocaleFixture.php:50
Sylius\Bundle\CoreBundle\Fixture\LocaleFixture->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Loader/FixtureLoader.php:23
Sylius\Bundle\FixturesBundle\Loader\FixtureLoader->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Loader/HookableFixtureLoader.php:37
Sylius\Bundle\FixturesBundle\Loader\HookableFixtureLoader->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Loader/SuiteLoader.php:33
Sylius\Bundle\FixturesBundle\Loader\SuiteLoader->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Loader/HookableSuiteLoader.php:36
Sylius\Bundle\FixturesBundle\Loader\HookableSuiteLoader->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Command/FixturesLoadCommand.php:80
Sylius\Bundle\FixturesBundle\Command\FixturesLoadCommand->loadSuites() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Command/FixturesLoadCommand.php:67
Sylius\Bundle\FixturesBundle\Command\FixturesLoadCommand->execute() at /srv/sylius/vendor/symfony/console/Command/Command.php:326
Symfony\Component\Console\Command\Command->run() at /srv/sylius/vendor/symfony/console/Application.php:1081
Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:91
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:320
Symfony\Component\Console\Application->doRun() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:80
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/sylius/vendor/symfony/console/Application.php:174
Symfony\Component\Console\Application->run() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Installer/Executor/CommandExecutor.php:41
Sylius\Bundle\CoreBundle\Installer\Executor\CommandExecutor->runCommand() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Command/AbstractInstallCommand.php:104
Sylius\Bundle\CoreBundle\Command\AbstractInstallCommand->runCommands() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Command/InstallSampleDataCommand.php:82
Sylius\Bundle\CoreBundle\Command\InstallSampleDataCommand->execute() at /srv/sylius/vendor/symfony/console/Command/Command.php:326
Symfony\Component\Console\Command\Command->run() at /srv/sylius/vendor/symfony/console/Application.php:1081
Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:91
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:320
Symfony\Component\Console\Application->doRun() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:80
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/sylius/vendor/symfony/console/Application.php:174
Symfony\Component\Console\Application->run() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Installer/Executor/CommandExecutor.php:41
Sylius\Bundle\CoreBundle\Installer\Executor\CommandExecutor->runCommand() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Command/InstallDatabaseCommand.php:61
Sylius\Bundle\CoreBundle\Command\InstallDatabaseCommand->execute() at /srv/sylius/vendor/symfony/console/Command/Command.php:326
Symfony\Component\Console\Command\Command->run() at /srv/sylius/vendor/symfony/console/Application.php:1081
Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:91
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:320
Symfony\Component\Console\Application->doRun() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:80
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/sylius/vendor/symfony/console/Application.php:174
Symfony\Component\Console\Application->run() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Installer/Executor/CommandExecutor.php:41
Sylius\Bundle\CoreBundle\Installer\Executor\CommandExecutor->runCommand() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php:92
Sylius\Bundle\CoreBundle\Command\InstallCommand->execute() at /srv/sylius/vendor/symfony/console/Command/Command.php:326
Symfony\Component\Console\Command\Command->run() at /srv/sylius/vendor/symfony/console/Application.php:1081
Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:91
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:320
Symfony\Component\Console\Application->doRun() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:80
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/sylius/vendor/symfony/console/Application.php:174
Symfony\Component\Console\Application->run() at /srv/sylius/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:54
Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /srv/sylius/vendor/autoload_runtime.php:29
require_once() at /srv/sylius/bin/console:11
sylius:fixtures:load [<suite>]
The text was updated successfully, but these errors were encountered:
Hi there,
Just installed Sylius and getting this error while running install command
The text was updated successfully, but these errors were encountered: