brekke 01/10/18 21:58:51
Modified: conf/torque/templates/om Object.vm
Log:
During a copy, if the om object was generated to provide collections based
on foreign keys, the collections are not copied when isNew() is true.
Just set it to false, copy the collections, then set it back to true.
Revision Changes Path
1.2 +2 -1 jakarta-turbine-2/conf/torque/templates/om/Object.vm
Index: Object.vm
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/conf/torque/templates/om/Object.vm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Object.vm 2001/08/16 05:06:59 1.1
+++ Object.vm 2001/10/19 04:58:51 1.2
@@ -1104,7 +1104,7 @@
#end
#if ($complexObjectModel)
-
+ copyObj.setNew(false);
#set ( $list = "List " )
#foreach ($fk in $table.Referrers)
#set ( $tblFK = $fk.Table )
@@ -1132,6 +1132,7 @@
#set ( $list = "" )
#end
#end
+ copyObj.setNew(true);
#end
#foreach ($col in $table.Columns)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]