KhepinYamlFixturesBundle
KhepinYamlFixturesBundle copied to clipboard
Support for application parameters in fixtures
for example:
# app/config/parameters.yml
parameters:
base_path: web/files
#.../DataFixtures/data.yml
model: Me\MyBundle\Entity\File
fixtures:
file1:
src: %base_path%/1.jpg
SELECT * from File
id, src
1, web/files/1.jpg
It could helps for deploy and testing.
Could be good indeed. You're welcome to send a PR for it ;)
+1 This will be awesome