]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Put back in the foreign-key checking code in process_relationships for
authorJonathan LaCour <jonathan@cleverdevil.org>
Fri, 30 Jun 2006 01:19:52 +0000 (01:19 +0000)
committerJonathan LaCour <jonathan@cleverdevil.org>
Fri, 30 Jun 2006 01:19:52 +0000 (01:19 +0000)
ActiveMapper.  It looks like it is required by at least one person, so for
now the code will stay in!

lib/sqlalchemy/ext/activemapper.py

index 132c93e75fadfd3840994210542fc3f521e7b0bf..541bf781274d0f98473b617f33e539abf552ce91 100644 (file)
@@ -110,11 +110,6 @@ def process_relationships(klass, was_deferred=False):
     # and make sure that we can find the related tables (they do not 
     # have to be processed yet, just defined), and we defer if we are 
     # not able to find any of the related tables
-    
-    # thanks to deferred mapper compilation, this loop should no longer 
-    # be necessary -- however, I will leave it here commented out until
-    # I get the feeling that its not causing problems for people.
-    '''
     for col in klass.columns:
         if col.foreign_key is not None:
             found = False
@@ -127,7 +122,6 @@ def process_relationships(klass, was_deferred=False):
                 if not was_deferred: __deferred_classes__.add(klass)
                 defer = True
                 break
-    '''
     
     # if we are able to find all related and referred to tables, then
     # we can go ahead and assign the relationships to the class