Skip to content

Commit

Permalink
IBX-8019: Added usage notice to LocationService::loadLocationChildren…
Browse files Browse the repository at this point in the history
… method
  • Loading branch information
webhdx committed May 29, 2024
1 parent 98b7b50 commit 99a6d34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eZ/Publish/API/Repository/LocationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()} with
* {@see \eZ\Publish\Core\QueryType\BuiltIn\ChildrenQueryType} as an alternative.
*
* @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
Expand Down

0 comments on commit 99a6d34

Please sign in to comment.