vipsoft / DoctrineDataFixturesExtension

Doctrine Data Fixtures Extension for Behat
MIT License
21 stars 35 forks source link

Exception if lifecycle: scenario #18

Closed farconada closed 11 years ago

farconada commented 11 years ago

If I use lifecycle: scenario then I have an exception, with lifecycle: feature then wortks ok

the code of the app is here https://github.com/farconada/SifpeV5/tree/feature/behat

[Doctrine\ORM\EntityNotFoundException]
Entity was not found.

Exception trace: () at /home/fernando/SifpeV5/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1794 Doctrine\ORM\UnitOfWork->doMerge() at /home/fernando/SifpeV5/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1701 Doctrine\ORM\UnitOfWork->merge() at /home/fernando/SifpeV5/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:638 Doctrine\ORM\EntityManager->merge() at /home/fernando/SifpeV5/vendor/hautelook/alice-bundle/Hautelook/AliceBundle/Alice/Doctrine.php:31 Hautelook\AliceBundle\Alice\Doctrine->merge() at /home/fernando/SifpeV5/vendor/hautelook/alice-bundle/Hautelook/AliceBundle/Alice/Loader.php:67 Hautelook\AliceBundle\Alice\Loader->setObjectManager() at /home/fernando/SifpeV5/vendor/hautelook/alice-bundle/Hautelook/AliceBundle/Alice/DataFixtureLoader.php:37 Hautelook\AliceBundle\Alice\DataFixtureLoader->load() at /home/fernando/SifpeV5/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/AbstractExecutor.php:121 Doctrine\Common\DataFixtures\Executor\AbstractExecutor->load() at /home/fernando/SifpeV5/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/ORMExecutor.php:83 Doctrine\Common\DataFixtures\Executor\ORMExecutor->Doctrine\Common\DataFixtures\Executor{closure}() at n/a:n/a call_user_func() at /home/fernando/SifpeV5/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:223 Doctrine\ORM\EntityManager->transactional() at /home/fernando/SifpeV5/app/cache/test/jms_diextra/doctrine/EntityManager_5256796cb2c11.php:31 EntityManager5256796cb2c11_546a8d27f194334ee012bfe64f629947b07e4919CG\Doctrine\ORM\EntityManager->transactional() at /home/fernando/SifpeV5/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Executor/ORMExecutor.php:85 Doctrine\Common\DataFixtures\Executor\ORMExecutor->execute() at /home/fernando/SifpeV5/vendor/vipsoft/doctrine-data-fixtures-extension/src/VIPSoft/DoctrineDataFixturesExtension/Service/FixtureService.php:218 VIPSoft\DoctrineDataFixturesExtension\Service\FixtureService->loadFixtures() at /home/fernando/SifpeV5/vendor/vipsoft/doctrine-data-fixtures-extension/src/VIPSoft/DoctrineDataFixturesExtension/Service/FixtureService.php:279 VIPSoft\DoctrineDataFixturesExtension\Service\FixtureService->reloadFixtures() at /home/fernando/SifpeV5/vendor/vipsoft/doctrine-data-fixtures-extension/src/VIPSoft/DoctrineDataFixturesExtension/EventListener/HookListener.php:118 VIPSoft\DoctrineDataFixturesExtension\EventListener\HookListener->beforeScenario() at n/a:n/a call_user_func() at /home/fernando/SifpeV5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:164 Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() at /home/fernando/SifpeV5/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:53 Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /home/fernando/SifpeV5/vendor/behat/behat/src/Behat/Behat/Tester/ScenarioTester.php:69 Behat\Behat\Tester\ScenarioTester->visit() at /home/fernando/SifpeV5/vendor/behat/gherkin/src/Behat/Gherkin/Node/AbstractNode.php:42 Behat\Gherkin\Node\AbstractNode->accept() at /home/fernando/SifpeV5/vendor/behat/behat/src/Behat/Behat/Tester/FeatureTester.php:88 Behat\Behat\Tester\FeatureTester->visit() at /home/fernando/SifpeV5/vendor/behat/gherkin/src/Behat/Gherkin/Node/AbstractNode.php:42 Behat\Gherkin\Node\AbstractNode->accept() at /home/fernando/SifpeV5/vendor/behat/behat/src/Behat/Behat/Console/Command/BehatCommand.php:150 Behat\Behat\Console\Command\BehatCommand->runFeatures() at /home/fernando/SifpeV5/vendor/behat/behat/src/Behat/Behat/Console/Command/BehatCommand.php:128 Behat\Behat\Console\Command\BehatCommand->execute() at /home/fernando/SifpeV5/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244 Symfony\Component\Console\Command\Command->run() at /home/fernando/SifpeV5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:897 Symfony\Component\Console\Application->doRunCommand() at /home/fernando/SifpeV5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191 Symfony\Component\Console\Application->doRun() at /home/fernando/SifpeV5/vendor/behat/behat/src/Behat/Behat/Console/BehatApplication.php:68 Behat\Behat\Console\BehatApplication->doRun() at /home/fernando/SifpeV5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121 Symfony\Component\Console\Application->run() at /home/fernando/SifpeV5/vendor/behat/behat/bin/behat:32