I have a controller where I create a table with doctrine raw sql:
$sql = 'CREATE TABLE IF NOT EXISTS testTable
(id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id))
DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB';
$em = $this->getDoctrine()->getManager();
$statement = $em->getConnection()->prepare($sql);
$statement->execute();
Yet I cannot seem to figure out how to get a response to know if it executed successfully. Any ideas?