khepin / KhepinYamlFixturesBundle

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

Load fixture files individually #36

Open ebarbeito opened 10 years ago

ebarbeito commented 10 years ago

I wonder if it would be possible to load fixtures individually.

Adding a new --fixture option that let you load a single fixture file specified inside config.yml

This could have some benefits:

If you think this could be useful I can start to give it a try.

khepin commented 10 years ago

Not sure what you mean by individually, is it a single fixture inside of a file, or a single file?

Feel free to send a PR for that yeah.

ebarbeito commented 10 years ago

I was reffering to a single file. Issue title edited

khepin commented 10 years ago

I won't personally develop the feature, but if this is something you need I'll be happy to review and merge it.

RowanReid commented 10 years ago

I do this by assigning each fixture file a unique tag and then importing this tag