public function purgeOperations($includingChildren = false)
{
if ($includingChildren) {
foreach ($this->_data as $property => $document) {
if (!$document instanceof Shanty_Mongo_Document) {
continue;
}
if (!$this->isReference($document) || $this->hasRequirement($property, 'AsReference')) {
$document->purgeOperations(true);
}
}
}
$this->_operations = array();
}