From a72c50f27b9fd06829033532c189f9cbfffdc453 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 21 Jul 2005 04:35:25 +0000 Subject: [PATCH] --- lib/sqlalchemy/mapper.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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() -- 2.47.2