]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Jul 2005 04:35:25 +0000 (04:35 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Jul 2005 04:35:25 +0000 (04:35 +0000)
lib/sqlalchemy/mapper.py

index 583c84a7d055f0bd1fbdb283ee9c1cccbb6d57e6..061fafbb7892ac3b2019197e767cc8c76101aa2a 100644 (file)
@@ -288,7 +288,15 @@ class PropertyLoader(MapperProperty):
         self.mapper.init(root)
 
     def save(self, object, traverse, refetch):
-        self.mapper.save(object, )
+        # if a mapping table does not exist, save a row for all objects
+        # in our list normally, setting their primary keys
+        # else, determine the foreign key column in our table, set it to the parent
+        # of all child objects before saving
+        # if a mapping table exists, determine the two foreign key columns 
+        # in the mapping table, set the two values, and insert that row, for
+        # each row in the list
+        pass
+
     def delete(self):
         self.mapper.delete()