From: Mike Bayer Date: Thu, 21 Jul 2005 04:35:25 +0000 (+0000) Subject: (no commit message) X-Git-Tag: rel_0_1_0~862 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a72c50f27b9fd06829033532c189f9cbfffdc453;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git --- diff --git a/lib/sqlalchemy/mapper.py b/lib/sqlalchemy/mapper.py index 583c84a7d0..061fafbb78 100644 --- a/lib/sqlalchemy/mapper.py +++ b/lib/sqlalchemy/mapper.py @@ -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()