Author: david
Date: Mon Feb 13 13:42:31 2012
New Revision: 10871
Log:
Pass $connection to all save()'s
Modified:
trunk/lib/model/QubitDigitalObject.php
Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php Mon Feb 13 13:32:09 2012
(r10870)
+++ trunk/lib/model/QubitDigitalObject.php Mon Feb 13 13:42:31 2012
(r10871)
@@ -997,7 +997,7 @@
$pageCount->setName('page_count');
$pageCount->setScope('digital_object');
$pageCount->setValue(count($output), array('sourceCulture' => true));
- $pageCount->save();
+ $pageCount->save($connection);
}
}
@@ -1104,13 +1104,13 @@
$newInfoObject = new QubitInformationObject;
$newInfoObject->parentId = $this->getInformationObject()->id;
$newInfoObject->setTitle($this->getInformationObject()->getTitle().'
('.($i + 1).')');
- $newInfoObject->save();
+ $newInfoObject->save($connection);
// Create and link a new digital object
$newDigiObject = new QubitDigitalObject;
$newDigiObject->parentId = $this->id;
$newDigiObject->setInformationObjectId($newInfoObject->id);
- $newDigiObject->save();
+ $newDigiObject->save($connnection);
// Derive new file path based on newInfoObject
$assetPath = $newDigiObject->getAssetPath();
@@ -1143,7 +1143,7 @@
$newDigiObject->mediaTypeId = $this->mediaTypeId;
$newDigiObject->setPageCount();
$newDigiObject->setSequence($i + 1);
- $newDigiObject->save();
+ $newDigiObject->save($connnection);
// And finally create reference and thumb images for child asssets
$newDigiObject->createRepresentations($newDigiObject->getUsageId(),
$connection);
@@ -1591,7 +1591,7 @@
$derivative->setMimeAndMediaType();
$derivative->createDerivatives = false;
$derivative->indexOnSave = false;
- $derivative->save();
+ $derivative->save($connection);
}
}
}
@@ -1882,7 +1882,7 @@
}
$displayAsCompoundProp->setValue($value, array('sourceCulture' => true));
- $displayAsCompoundProp->save();
+ $displayAsCompoundProp->save($connection);
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.