Author: david
Date: Tue Nov 24 14:19:11 2009
New Revision: 3956
Log:
Move processing of 'propertys' array to QubitObject::save().
Modified:
trunk/lib/model/QubitInformationObject.php
trunk/lib/model/QubitObject.php
Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php Tue Nov 24 14:17:40 2009
(r3955)
+++ trunk/lib/model/QubitInformationObject.php Tue Nov 24 14:19:11 2009
(r3956)
@@ -166,21 +166,6 @@
}
}
- // Save updated properties
- foreach ($this->propertys as $property)
- {
- $property->setIndexOnSave(false);
- $property->object = $this;
-
- try
- {
- $property->save();
- }
- catch (PropelException $e)
- {
- }
- }
-
// Save new digital objects
// TODO: Allow adding additional DOs as derivatives
foreach ($this->digitalObjects as $digitalObject)
Modified: trunk/lib/model/QubitObject.php
==============================================================================
--- trunk/lib/model/QubitObject.php Tue Nov 24 14:17:40 2009 (r3955)
+++ trunk/lib/model/QubitObject.php Tue Nov 24 14:19:11 2009 (r3956)
@@ -53,6 +53,21 @@
}
}
+ // Save updated properties
+ foreach ($this->propertys as $property)
+ {
+ $property->setIndexOnSave(false);
+ $property->object = $this;
+
+ try
+ {
+ $property->save();
+ }
+ catch (PropelException $e)
+ {
+ }
+ }
+
// Save updated object relations
foreach ($this->relationsRelatedByobjectId as $relation)
{
--
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.