Removed some usage of _sa_class_manager since it didn't represent the full model. Fixes issue #319