Author: jablko
Date: Fri Oct 15 12:42:17 2010
New Revision: 8161
Log:
Drop some unnecessary assignments
Modified:
trunk/lib/model/QubitInformationObject.php
Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php Fri Oct 15 12:17:00 2010
(r8160)
+++ trunk/lib/model/QubitInformationObject.php Fri Oct 15 12:42:17 2010
(r8161)
@@ -155,8 +155,6 @@
{
foreach ($this->informationObjectsRelatedByparentId->transient as $child)
{
- $child->setParentId($this->id);
-
try
{
$child->save();
@@ -167,12 +165,11 @@
}
}
- // Save updated related event objects (update search index after updating
- // all related objects that are included in the index document)
+ // Save updated related events (update search index after updating all
+ // related objects that are included in the index document)
foreach ($this->events as $event)
{
$event->setIndexOnSave(false);
- $event->informationObject = $this;
try
{
@@ -184,11 +181,10 @@
}
// Save new digital objects
- // TODO Allow adding additional DOs as derivatives
+ // TODO Allow adding additional digital objects as derivatives
foreach ($this->digitalObjects as $digitalObject)
{
$digitalObject->indexOnSave = false;
- $digitalObject->informationObject = $this;
try
{
@@ -205,7 +201,7 @@
foreach ($this->statuss as $status)
{
$status->setIndexOnSave(false);
- $status->setObject($this);
+
$status->save();
}
--
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.