title: How to escape single quotes in Doctrine
body: <p>This is a very basic quesiton about Doctrine. How are single quotes escaped?</p>
  
  <p>For example, title needs to be escaped as it contains a single quote:</p>
  
  <pre><code>    $query = $this-&gt;entityManager-&gt;
              createQuery("SELECT p  from \RTH\Entity\Prod p
                           JOIN p.prodns ps
                           JOIN ps.events e
                           WHERE p.title = '" . $title . "'");
  </code></pre>
  
  <p>Is there a specific way to do this in Doctrine 2?</p>