public function rewriteIds($idMapping)
{
if (array_key_exists("asset", $idMapping) and array_key_exists($this->getId(), $idMapping["asset"])) {
$this->setId($idMapping["asset"][$this->getId()]);
// reset marker & hotspot information
$this->setHotspots([]);
$this->setMarker([]);
$this->setCropPercent(false);
$this->setImage(null);
}
}