title: How can I specify that Doctrine must use a mysqli-connection
body: <p>while executing a long script that uses Doctrine to access the db, I get an error 2006 server has gone away.</p>
  
  <p>I've already solved this problem on a website that doens't use Doctrine. The solution there was to use mysqli instead of the normal mysql driver.</p>
  
  <p>How can i tell Doctrine to use a mysqli-driver in order to avoid 2006-errors?</p>
  
  <p>Thanks!</p>