title: Doctrine 2 - Class Table Inheritance, selecting by type
body: <p>I have two entities - News and Page. 
  Definition looks like this:</p>
  
  <pre>
  /**
   * Description of Page
   * @Entity
   * @InheritanceType("JOINED")
   * @DiscriminatorColumn(name="type", type="string")
   * @DiscriminatorMap({
   *  "news" = "News" ,
   *  "page" = "Page"})
   *
   * @table(
   *  name="pages"
   * )
   */
  class Page extends BaseEntity {...}
  class News extends Page {...}
  </pre>
  
  <p>I know, how to select only "news" entities - simple <code>SELECT ... FROM News n</code>.</p>
  
  <p>But is there some way how to select only "page" entities, which are mapped directly to Page class? Or do I have to create some extra entity extending Page for this?</p>