khepin / KhepinYamlFixturesBundle

Easy loading of fixtures defined in YAML files for Symfony2 and Doctrine2
MIT License
58 stars 42 forks source link

Purge with truncate #26

Closed lenardpalko closed 9 years ago

lenardpalko commented 11 years ago

Hello,

In the Doctrine/DataFixtures bundle is a setting that can be used to truncate the DB tables so when the fixtures are inserted they will have the same ID on them.

I saw that this bundle uses the purger from the DataFixtures, but is there a method in which I can specify to truncate the tables instead of just use DELETE FROM *.

Thanks

khepin commented 11 years ago

Hmm... Not sure what would be the point of that...

If it's possible with Doctrine, then it could be added to this bundle as well. Feel free to make a PR.

lenardpalko commented 9 years ago

Closed with PR #32.