Allow entity inheritance in metaclass