Skip to content

Commit 33627b3

Browse files
committed
IBX-8019: Added usage notice to LocationService::loadLocationChildren method
1 parent 98b7b50 commit 33627b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eZ/Publish/API/Repository/LocationService.php

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ public function loadLocations(ContentInfo $contentInfo, ?Location $rootLocation
9797
/**
9898
* Loads children which are readable by the current user of a location object sorted by sortField and sortOrder.
9999
*
100+
* Use this method with caution. It performs heavy queries on the database. Consider using
101+
* {@see \eZ\Publish\API\Repository\SearchService::findLocations()} as an alternative which
102+
* uses Search Engine internally.
103+
*
100104
* @param \eZ\Publish\API\Repository\Values\Content\Location $location
101105
* @param int $offset the start offset for paging
102106
* @param int $limit the number of locations returned

0 commit comments

Comments
 (0)