title: How should i find objects in Doctrine? DQL or find()
body: <p>i wonder whats the correct way of finding objects from the database? </p>
  
  <p>i know there's </p>
  
  <pre><code>$em-&gt;find()
  $em-&gt;createQuery()
  </code></pre>
  
  <p>i guess <code>createQuery</code> will be more like prepared statements thus more secure? </p>
  
  <p>how do i set named parameters in DQL?</p>
  
  <pre><code>$em-&gt;createQuery('select u from \Entities\Users u WHERE u.name = :name');
  </code></pre>