Symfony2 export db to doctrine fixtures
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"