private function getNodeReferences($path, $name = null, $weakReference = false)
{
$targetId = $this->getSystemIdForNode($path);
$params = array($targetId);
$table = $weakReference ? $this->referenceTables[PropertyType::WEAKREFERENCE] : $this->referenceTables[PropertyType::REFERENCE];
$query = "SELECT CONCAT(n.path, '/', r.source_property_name) FROM phpcr_nodes n\n INNER JOIN {$table} r ON n.id = r.source_id\n WHERE r.target_id = ?";
if (null !== $name) {
$query .= " AND source_property_name = ?";
$params[] = $name;
}
$stmt = $this->getConnection()->executeQuery($query, $params);
return $stmt->fetchAll(\PDO::FETCH_COLUMN);
}