diff --git a/core/kernel/persistence/smoothsql/class.Class.php b/core/kernel/persistence/smoothsql/class.Class.php index 66a92ea82..9a3b09a4b 100644 --- a/core/kernel/persistence/smoothsql/class.Class.php +++ b/core/kernel/persistence/smoothsql/class.Class.php @@ -203,9 +203,9 @@ public function getProperties(core_kernel_classes_Class $resource, $recursive = public function getInstances(core_kernel_classes_Class $resource, $recursive = false, $params = []) { $returnValue = []; - + if (empty($params)) { - $resourceIds = $this->getInstanceIds($resource->getUri(), $recursive); + $resourceIds = $this->getInstanceUris($resource->getUri(), $recursive); foreach ($resourceIds as $resourceId) { $returnValue[$resourceId] = $this->getModel()->getResource($resourceId); @@ -641,7 +641,7 @@ public function updateUri(core_kernel_classes_Class $resource, string $newUri): ); } - public function getInstanceIds(string $classUri, bool $recursive = false): array + public function getInstanceUris(string $classUri, bool $recursive = false): array { if (!$recursive) { $query = 'SELECT subject FROM statements WHERE predicate = ? AND object = ?';