/**
* Loads path data identified by given ordered array of hierarchy data.
*
* The first entry in $hierarchyData corresponds to the top-most path element in the path, the second entry the
* child of the first path element and so on.
* This method is faster than self::getPath() since it can fetch all elements using only one query, but can be used
* only for autogenerated paths.
*
* @param array $hierarchyData
*
* @return array
*/
public function loadPathDataByHierarchy(array $hierarchyData)
{
try {
return $this->innerGateway->loadPathDataByHierarchy($hierarchyData);
} catch (DBALException $e) {
throw new \RuntimeException('Database error', 0, $e);
} catch (PDOException $e) {
throw new \RuntimeException('Database error', 0, $e);
}
}