Use mapped superclass for doctrine orm.