/**
* Updates parent id of autogenerated entries.
*
* Update includes history entries.
*
* @param mixed $oldParentId
* @param mixed $newParentId
*/
public function reparent($oldParentId, $newParentId)
{
try {
$this->innerGateway->reparent($oldParentId, $newParentId);
} catch (DBALException $e) {
throw new \RuntimeException('Database error', 0, $e);
} catch (PDOException $e) {
throw new \RuntimeException('Database error', 0, $e);
}
}