The solution is to check for polymorphic settings in the mapper and not use the model if other classes inherit from it.