Symfony db interaction; PDOException: could not find driver
<p>So, i started using symfony, yesterday, and while following the tutorials, i ran into the database one.</p>

<p>After following the steps (creating the Entities and using the console commands to create the tables), it's now time to persist the entities inside the tables.</p>

<pre><code>// Entity setup
$rep = new Entity\Reparto();
$rep-&gt;setDescrizione("Standard rep");
$rep-&gt;setTipo("0");
$rep-&gt;setIdAzienda(0);

// DB operation
$em = $this-&gt;getDoctrine()-&gt;getManager();
$em-&gt;persist($rep); &lt;-- Error here
$em-&gt;flush();

return new Response("Saved!");
</code></pre>

<p>This is the controller i call;<br>At the line <code>$em-&gt;persist($rep)</code> i receive, twice, the following exception: </p>

<pre><code>"PDOException: could not find driver"
</code></pre>

<p>By removing that line, no exceptions are thrown, but obviously nothing happens</p>

<p>I already checked the php.ini file (there's only one):<br>I uncommented <code>extension=php_pdo_mysql.dll</code><br></p>

<p><code>php -m</code> displays both PDO and pdo_mysql</p>

<p>I'm running the last version of Symfony (3.1) installed with composer, both on php 5.5.38, 5.6.18 and 7.0.3, running on windows 10 64-bit.<br>The whole thing is running on the dedicated webserver downloaded when you create a simfony project.</p>