title: Simple IF test statement in Doctrine
body: <p>Does Doctrine support IF statements? I get the following error:</p>
  
  <pre><code>Expected known function, got 'IF'
  </code></pre>
  
  <p>while executing this query with IF:</p>
  
  <pre><code>$qb-&gt;select("c.id, IF(c.type_id LIKE 9, c.name, c.lastname) as name")
  </code></pre>
  
  <p>It works fine while re-written in pure SQL. Any workarounds?</p>