public function getOperations($includingChildren = false)
{
$operations = $this->_operations;
if ($includingChildren) {
foreach ($this->_data as $property => $document) {
if (!$document instanceof Shanty_Mongo_Document) {
continue;
}
if (!$this->isReference($document) && !$this->hasRequirement($property, 'AsReference')) {
$operations = array_merge_recursive($operations, $document->getOperations(true));
}
}
}
return $operations;
}