title: doctrine: QueryBuilder vs createQuery?
body: <p>In Doctrine you can create DQL in 2 ways:</p>
  
  <p><strong>EntityManager::createQuery</strong>:</p>
  
  <pre><code>$query = $em-&gt;createQuery('SELECT u FROM MyProject\Model\User u WHERE u.id = ?1');
  </code></pre>
  
  <p><strong>QueryBuilder</strong>:</p>
  
  <pre><code>$qb-&gt;add('select', 'u')
     -&gt;add('from', 'User u')
     -&gt;add('where', 'u.id = ?1')
     -&gt;add('orderBy', 'u.name ASC');
  </code></pre>
  
  <p>I wonder what the difference is and which should I use?</p>