title: Symfony2 Doctrine: How to disable mysql connection?
body: <p>I use Symfony2 for projects that doesn't use mysql at all, and mysql is not installed on my server.</p>
  
  <p>In <code>parameters.yml</code> I left everything with default values.</p>
  
  <p>Now every time I delete the cache, <strong>on first page refresh</strong> I get <code>500</code> error and in <code>error.log</code> I get</p>
  
  <pre><code>PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2003] Can't connect to MySQL server ...
  </code></pre>
  
  <p>but after I refresh the page everything works fine.</p>
  
  <p>I heard that doctrine is not only ORM and is tightly connected with symfony so I can't disable/remove it.</p>
  
  <p>All I want is to disable the mysql connection and get rid of that error.</p>