KhepinYamlFixturesBundle icon indicating copy to clipboard operation
KhepinYamlFixturesBundle copied to clipboard

Support for application parameters in fixtures

Open dvc opened this issue 11 years ago • 2 comments

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.

dvc avatar Feb 05 '14 11:02 dvc

Could be good indeed. You're welcome to send a PR for it ;)

khepin avatar Feb 06 '14 22:02 khepin

+1 This will be awesome

luishdez avatar Nov 11 '14 16:11 luishdez