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"})
*/
You should use Inheritance annotations in parent class.