I am developing a backup system. I want to backup my database will all it rows.
I have found something, but it is not what exactly i need
$em = $this->getContainer()->get('doctrine')->getManager();
$schemaTool = new SchemaTool($em);
$metadatas = $em->getMetadataFactory()->getAllMetadata();
$sqls = $schemaTool->getCreateSchemaSql($metadatas);
It just creates the schema, but not the content. I'm using Postgresql.
How should i get my database dump with contents in php/symfony ?
thank you!