]> BookStack Code Mirror - bookstack/blobdiff - app/References/ReferenceFetcher.php
DB: Started update of entity loading to avoid global selects
[bookstack] / app / References / ReferenceFetcher.php
index 0d9883a3edcbcc057136a3273cd5433055286f55..655ea7c09eb2bf8b0c21b7c30f0345b7ab0e3ea7 100644 (file)
@@ -23,7 +23,7 @@ class ReferenceFetcher
     public function getReferencesToEntity(Entity $entity): Collection
     {
         $references = $this->queryReferencesToEntity($entity)->get();
-        $this->mixedEntityListLoader->loadIntoRelations($references->all(), 'from');
+        $this->mixedEntityListLoader->loadIntoRelations($references->all(), 'from', true);
 
         return $references;
     }