How do I generate Symfony fixtures YML from exising database data?

frodosghost picture frodosghost · Nov 26, 2009 · Viewed 13k times · Source

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

Answer

tuffo19 picture tuffo19 · Apr 26, 2010

In symfony 1.4 you just need to write:

./symfony doctrine:data-dump

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

:-)