title: query builder add condition on field type array
body: <p>My question is simple : is it possible to add a where statment using doctrine and the query builder on a field type array ?</p>
  
  <p>Inside my entity I have the following :</p>
  
  <pre><code>/**
   * @var array
   *
   * @ORM\Column(name="weekDays", type="array")
   */
  private $weekDays;
  </code></pre>
  
  <p>In the object view the array look like this:</p>
  
  <pre><code>array(
    1 =&gt; false,
    2 =&gt; false,
    3 =&gt; true,
    4 =&gt; false,
    5 =&gt; false,
    6 =&gt; false,
    7 =&gt; false
  );
  </code></pre>
  
  <p>an it's representation once serialize and inserted into the database look like this :</p>
  
  <pre><code>a:7:{i:1;b:0;i:2;b:0;i:3;b:1;i:4;b:0;i:5;b:0;i:6;b:0;i:7;b:0;}
  </code></pre>
  
  <p>What I try to achieve is something like this :</p>
  
  <pre><code>   $q = $this-&gt;em-&gt;getRepository('AcmeBundle:Notification')
          -&gt;createQueryBuilder('n')
          -&gt;andWhere('e.weekDays = :day')    &lt;-- This is wrong
          -&gt;setParameter('day', date('N'))
      ;
  </code></pre>
  
  <p>typically this would result to something like this in SQL</p>
  
  <pre><code>SELECT * FROM notification WHERE weekDays LIKE '%i:1;b:1%' -- if date('N') = 1 (monday)
  SELECT * FROM notification WHERE weekDays LIKE '%i:7;b:1%' -- if date('N') = 7 (sunday)
  </code></pre>
  
  <p>and 
      SELECT * FROM notification WHERE weekDays LIKE '%i:1;b:0%'
  in case I want to set <code>-&gt;andWhere('e.weekDays != :day')</code></p>