h4cc / AliceFixturesBundle

A Symfony2 bundle for using Alice and Faker with data fixtures. Abled to use Doctrine ORM as well as Doctrine MongoDB ODM.
MIT License
75 stars 25 forks source link

Troubleshooting entities which are not created #39

Closed nmeirik closed 10 years ago

nmeirik commented 10 years ago

How can I go about troubleshooting entities which are not created. I've created a very simple fixture.yml and am using the h4cc_alice_fixtures:load:files command example to load it. The app/logs/dev.log show all the tables and index being recreated, and at the last two lines, there is a START TRANSACTION, and then an INSERT for the entity in the file. However, no rows are persisted to the database. I'm lost as to how to debug this.

The exact command I'm running is:

php app/console h4cc_alice_fixtures:load:files --manager=default --type=yaml --seed=42 --locale=de_DE --drop src/NM/Bundle/MyBundle/DataFixtures/Alice/Clients.yml

...and the fixture file simple contains:

NM\Bundle\MyBundle\Entity\Client: client0: name: Fixturetest

nmeirik commented 10 years ago

This was due to a totally unrelated issue. My apologies for the disturbance.

h4cc commented 10 years ago

Nevermind.

Hint for other users with maybe similair problems: Check your configuration https://github.com/h4cc/AliceFixturesBundle#configuration and the do_dropand perstist settings in your FixtureSets.