title: Can I access discriminator field from php in doctrine2?
body: <p>I have an entity which defines inheritance like this:</p>
  
  <pre><code>* @DiscriminatorColumn(name="type", type="string")
  * @DiscriminatorMap({"text" = "TextAttribute", "boolean" = "BooleanAttribute", "numeric" = "NumericAttribute", "date" = "DateAttribute"})
  </code></pre>
  
  <p>I am wondering is it possible to have getter for field 'type'? I know I can use instanceof (and in most cases this is what I'm doing) but there are few scenarios where $item->getType() would make my life so much easier.</p>