title: Doctrine2 [Syntax Error] Error: Expected Literal, got '-'
body: <p>I am using doctrine2 with symfony2 and I am trying to perform a simple select query:</p>
  
  <p>I want to run:</p>
  
  <pre><code>SELECT * FROM table WHERE status in (1, -1)
  </code></pre>
  
  <p>This PHP code:</p>
  
  <pre><code>$queryBuilder = $this-&gt;_em-&gt;createQueryBuilder();
          $queryBuilder
          -&gt;select('n')
          -&gt;from('MyBundle:Table', 'n')
          -&gt;where('n.status IN (1, -1)');
  return $queryBuilder-&gt;getQuery()-&gt;getResult();
  </code></pre>
  
  <p>Gives the following exception:</p>
  
  <pre><code>[Syntax Error] line 0, col 96: Error: Expected Literal, got '-'
  </code></pre>
  
  <p>This is the attribute definition within the entity:</p>
  
  <pre><code>/**
   * @var integer
   *
   * @ORM\Column(name="status", type="integer", nullable=true)
   */
  private $status;
  </code></pre>
  
  <p>If I use only positive numbers within the <code>in</code> argument, it will work. The exception only happens with negative numbers.</p>
  
  <p>What causes this exception?</p>