Skip to content

Commit

Permalink
Return objects from Doctrine queries, not arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
undecaf committed Sep 18, 2021
1 parent b1f31d1 commit 736e50f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
->from(File::class, 'file')
->orderBy('file.name', 'ASC')
->getQuery();
$files = $query->getArrayResult();
$files = $query->getResult();

// Prepare the model for Fluid
$model = [
Expand Down
2 changes: 1 addition & 1 deletion public/gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
->setParameter('tn_size', TN_SIZE)
->orderBy('img.name', 'ASC')
->getQuery();
$images = $query->getArrayResult();
$images = $query->getResult();

// Prepare the model for Fluid
$model = [
Expand Down

0 comments on commit 736e50f

Please sign in to comment.