diff --git a/src/CustomReport/Repository/CustomReportRepository.php b/src/CustomReport/Repository/CustomReportRepository.php index 6fc8c2f3..4a3d67e9 100644 --- a/src/CustomReport/Repository/CustomReportRepository.php +++ b/src/CustomReport/Repository/CustomReportRepository.php @@ -17,6 +17,7 @@ namespace Pimcore\Bundle\StudioBackendBundle\CustomReport\Repository; use Pimcore\Bundle\CustomReportsBundle\Tool\Config\Listing; +use Pimcore\Bundle\CustomReportsBundle\Tool\Config\Listing\Dao; use Pimcore\Bundle\StudioBackendBundle\Security\Service\SecurityServiceInterface; use Pimcore\Model\User; @@ -33,7 +34,9 @@ public function __construct( } public function loadForUser(User $user): array { - return (new Listing())->getDao()->loadForGivenUser( + /** @var Dao $dao */ + $dao = (new Listing())->getDao(); + return $dao->loadForGivenUser( $user ); }