title: Doctrine DQL "inclusive or"
body: <p>I would like to know if there is a way to achieve a simple "<strong>inclusive or</strong>" in <strong>Doctrine DQL</strong> ? </p>
  
  <p>I can do the following in MySQL</p>
  
  <pre><code>SELECT * FROM Status WHERE `isGenerated`|`isGeneratable`=:flag;
  </code></pre>
  
  <p><strong>or</strong></p>
  
  <pre><code>SELECT * FROM Status WHERE :flag IN (`isGenerated`,`isGeneratable`);
  </code></pre>
  
  <p><strong>But</strong> neither of these work in DQL </p>
  
  <p><strong>Solution</strong> can't answer my own question yet :/</p>
  
  <pre><code>SELECT s FROM FooBundle:Status s WHERE BIT_OR(s.isGenerated,s.isGeneratable)=:flag
  </code></pre>