HOw to use dicriminator map in Doctrine Entity extended from abstract class in symfony2 php
===

I have this structure

    `UserInterface.php`
     abstract class User implements UserInterfacee in model`
    `class student extends user.php`
    `class teacher extends user.php`

Now in which class should i use this doctrine code

    /**
     * @Entity
     * @InheritanceType("JOINED")
     * @DiscriminatorColumn(name="discr", type="string")
     * @DiscriminatorMap({"user" = "User", "student" = "Student"})
     */

