title: How to do inheritance using yaml in Doctrine 2
body: <p>Im trying to use FOS UserBundle And I need to create an user entiy with extending BaseUser from the FOSUserBundle.</p>
  
  <p>Here is my User.orm.yml</p>
  
  <pre><code>Acme\UserBundle\Entity\User:
    type: entity
    id:
      id:
        type: integer
        generator: { strategy: AUTO }
  inheritanceType: SINGLE_TABLE
  discriminatorColumn:
    name: discr
    type: string
    length: 255
  discriminatorMap:
    user: User
    baseUser: BaseUser
  </code></pre>
  
  <p>I didnt forget to extends BaseUser but I just dont know how to do that.
  The <a href="http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/inheritance-mapping.html" rel="nofollow">doctrine documentation</a> only show how to do that using annotation.</p>
  
  <p>Could you help me please ?</p>
  
  <p>Thanks</p>