public function rewriteIds($idMapping)
{
if ($this->data["internal"]) {
$type = $this->data["internalType"];
$id = (int) $this->data["internalId"];
if (array_key_exists($type, $idMapping)) {
if (array_key_exists($id, $idMapping[$type])) {
$this->data["internalId"] = $idMapping[$type][$id];
$this->getHref();
}
}
}
}