I am currently developing an backup system which is backuping database dump and media files.
I know that php app/console doctrine:schema:create --dump-sql will create database dump for me, but thats not what i need. I need to create database dump file exactly from php class so i can work with it (for example, to encode it).
How can i create database dump from class using symfony?
$dump = shell_exec('php app/console etc...');?