public function removeIgnoredProperties(&$exportData)
{
// remove ignored properties
$ignoreProperties = $this->getPropertiesWithRequirement('Ignore');
foreach ($this->_data as $property => $document) {
if (!$document instanceof Shanty_Mongo_Document) {
continue;
}
if ($this->isReference($document) || $this->hasRequirement($property, 'AsReference')) {
continue;
}
$document->removeIgnoredProperties($exportData[$property]);
}
foreach ($ignoreProperties as $property) {
unset($exportData[$property]);
}
}