private function AddEntityRelationMap(IEntityRelationalMap $EntityRelationalMap)
{
$EntityRelationalMap->Initialize($this);
$EntityType = $EntityRelationalMap->GetEntityType();
if (!$this->Domain->HasEntityMap($EntityType)) {
throw new MappingException('The supplied entity relational map for %s is not part of the given domain.', $EntityType);
}
$this->EntityRelationMaps[$EntityType] = $EntityRelationalMap;
$this->EntityRelationMapsByPrimaryKeyTable[$EntityRelationalMap->GetPrimaryKeyTable()->GetName()] = $EntityRelationalMap;
}