]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
empty out ClassKey registry when clear_mappers() is called
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Jan 2007 23:08:55 +0000 (23:08 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Jan 2007 23:08:55 +0000 (23:08 +0000)
lib/sqlalchemy/orm/__init__.py

index 1569b02deba75e751e60912321ddd765109f5982..b7706e381f3b849e70b975d784d4a7da260a3af5 100644 (file)
@@ -73,6 +73,7 @@ def clear_mappers():
     
     when new mappers are created, they will be assigned to their classes as their primary mapper."""
     mapper_registry.clear()
+    mapperlib.ClassKey.instances.clear()
     
 def clear_mapper(m):
     """remove the given mapper from the storage of mappers.