I assume that what you are looking for is to define (let use your example) the schematic level that user2inherits from userwhen creating your model. You can do this using the doctrine inheritance described in the documentation .
So in your schema.yml:
User:
columns:
name: string
User2:
inheritance:
extends: User
type: concrete
columns:
something: int
user2 ( "" ), user. , , , , , .