diff --git a/eZ/Publish/API/Repository/LocationService.php b/eZ/Publish/API/Repository/LocationService.php index 4bc04347ec..e7b1d24772 100644 --- a/eZ/Publish/API/Repository/LocationService.php +++ b/eZ/Publish/API/Repository/LocationService.php @@ -97,6 +97,10 @@ public function loadLocations(ContentInfo $contentInfo, ?Location $rootLocation /** * Loads children which are readable by the current user of a location object sorted by sortField and sortOrder. * + * Use this method with caution. It performs heavy queries on the database. Consider using + * {@see \eZ\Publish\API\Repository\SearchService::findLocations()} as an alternative which + * uses Search Engine internally. + * * @param \eZ\Publish\API\Repository\Values\Content\Location $location * @param int $offset the start offset for paging * @param int $limit the number of locations returned