Author: sevein
Date: Thu Apr  7 11:19:22 2011
New Revision: 9067

Log:
Save realted QubitContactInformation objects when actors are saved.

Modified:
   trunk/lib/model/QubitActor.php

Modified: trunk/lib/model/QubitActor.php
==============================================================================
--- trunk/lib/model/QubitActor.php      Thu Apr  7 10:34:29 2011        (r9066)
+++ trunk/lib/model/QubitActor.php      Thu Apr  7 11:19:22 2011        (r9067)
@@ -206,6 +206,20 @@
       }
     }
 
+    // Save related contact information objects
+    foreach ($this->contactInformations as $item)
+    {
+      $item->actor = $this;
+
+      try
+      {
+        $item->save();
+      }
+      catch (PropelException $e)
+      {
+      }
+    }
+
     $this->updateLuceneIndex();
 
     return $this;

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to