title: Propel Symfony2 "OR" between two filters
body: <p>I'm trying get from my database some datas which must start or end in an interval :</p>
  
  <p>The basic SQL Query looks like that : </p>
  
  <pre><code>SELECT broadcast.id, broadcast.id_channel, broadcast.start_at, broadcast.real_start_at, broadcast.real_end_at, broadcast.title, broadcast.sended, FROM `broadcast` 
  WHERE (
      (broadcast.real_start_at &gt;= :p1 AND broadcast.real_start_at &lt;= :p2) 
      OR 
      (broadcast.real_end_at &gt;= :p3 AND broadcast.real_end_at &lt;= :p4)) 
      AND broadcast.sended=:p5 AND broadcast.id_plurimedia=:p6 
  LIMIT 50
  </code></pre>
  
  <p>The propel query is this one : </p>
  
  <pre><code>$broadcastsQuery = BroadcastQuery::create()
          -&gt;limit(20);
          -&gt;condition('cond1', 'broadcast.real_start_at &gt;= ?', $this-&gt;date_start, \Criteria::GREATER_EQUAL)
          -&gt;condition('cond2', 'broadcast.real_start_at &lt;= ?', $this-&gt;date_end, \Criteria::LESS_EQUAL)
          -&gt;combine(array('cond1', 'cond2'), \Criteria::LOGICAL_AND, 'cond3')
          -&gt;condition('cond4', 'broadcast.real_end_at &gt;= ?', $this-&gt;date_start, \Criteria::GREATER_EQUAL)
          -&gt;condition('cond5', 'broadcast.real_end_at &lt;= ?', $this-&gt;date_end, \Criteria::LESS_EQUAL)
          -&gt;combine(array('cond4', 'cond5'), \Criteria::LOGICAL_AND, 'cond6')
          -&gt;where(array('cond3', 'cond6'), null, 'OR');
          -&gt;filterBySended(true)
          -&gt;find();
  </code></pre>
  
  <p>When I'm executing my script I've this error :</p>
  
  <pre><code>Unable to execute SELECT statement [SELECT broadcast.id, broadcast.id_channel, broadcast.id_plurimedia, broadcast.id_aedra, broadcast.start_at, broadcast.real_start_at, broadcast.real_end_at, broadcast.title, broadcast.sended, broadcast.date_creation, broadcast.date_edition FROM `broadcast` WHERE ((broadcast.real_start_at &gt;= :p1 AND broadcast.real_start_at &lt;= :p2) AND (broadcast.real_end_at &gt;= :p3 AND broadcast.real_end_at &lt;= :p4)) AND broadcast.sended=:p5 LIMIT 50] [wrapped: Warning: PDOStatement::bindValue() expects parameter 3 to be long, string given in /var/www/projectKI/vendor/propel/propel1/runtime/lib/connection/DebugPDOStatement.php line 114] (500 Internal Server Error)
  </code></pre>
  
  <p>I don't really understand why I'm getting an error and why my query has an "AND" statement instead of an "OR".</p>