Symfony2 exports db to doctrine lights

Is it possible to export existing database rows as doctrinal devices?

+4
source share
2 answers

Unfortunately, the export function does not exist at present, as in symfony 1.x

+2
source

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

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

Source: https://habr.com/ru/post/1402954/


All Articles