title: Doctrine 2 PlainValue expected
body: <p>I'm having trouble executing a Doctrine DQL Query. This is the error it gives me.</p>
  
  <pre><code>Doctrine\Common\Annotations\AnnotationException: [Syntax Error] Expected PlainValue, 
  got 'integer' at position 13 in property Base\Session::$lifetime.
  </code></pre>
  
  <p>My code looks like this:</p>
  
  <pre><code>$query = $em-&gt;createQuery("SELECT s FROM Base\Session s WHERE s.session = \"$id\"");
  </code></pre>
  
  <p>Where $id is the current session_id. My Model looks like:</p>
  
  <pre><code>namespace Base;
  
  /** @Entity @Table(name="session") */
  class Session extends Skeleton {
  /**
   * @Id @Column(type="integer")
   * @GeneratedValue(strategy="AUTO")
   */
  protected $id;
  
  /** @Column(length=32) */
  protected $session;
  
  /** @Column(type=integer) */
  protected $lifetime;
  
  /** @Column(type=integer) */
  protected $modified;
  
  /** @Column(type="text") */ 
  protected $data;
  }
  </code></pre>