Symfony2 export db to doctrine fixtures Symfony2 export db to doctrine fixtures symfony symfony

Symfony2 export db to doctrine fixtures


Unfortunately not, there is currently not an export function as there was in symfony 1.x


You can use the DoctrineFixturesGeneratorBundle in order to export the data from database as fixtures:

php bin/console doctrine:generate:fixture --entity=Blog:BlogPost \--ids="12 534 124" --name="bug43" --order="1"