How to generate Symfony fixtures YML from exising database data

builddatabasefixturessymfony1yaml

I was wondering if anyone knew how to generate a fixture.yml from data that is already existing in the database?

As you can use the build-schema to generate a schema, is there a way to do that for data?

symfony propel:build-schema

Best Answer

In symfony 1.4 you just need to write:

./symfony doctrine:data-dump

and you get the file data/fixtures/data.yml

:-)