Skip to content

Commit 99a6d34

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

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.
101+
* Consider using {@see \eZ\Publish\API\Repository\SearchService::findLocations()} with
102+
* {@see \eZ\Publish\Core\QueryType\BuiltIn\ChildrenQueryType} as an alternative.
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)