From 9dae3b12c7e7c441eb0c862b79b368d5148f81f2 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 19 Jul 2020 11:22:17 +0300 Subject: [PATCH] feat(element-queries): restore back doctrine collections #436 --- src/flextype/Support/Collection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flextype/Support/Collection.php b/src/flextype/Support/Collection.php index b1a217f2..47b4cba9 100644 --- a/src/flextype/Support/Collection.php +++ b/src/flextype/Support/Collection.php @@ -481,13 +481,13 @@ class Collection public function all() : array { // Mute notices if there is no requested fields to search inside the items. - //error_reporting($errorReporting = error_reporting() & ~E_NOTICE); + error_reporting($errorReporting = error_reporting() & ~E_NOTICE); // Match collection $collection = $this->collection->matching($this->criteria); // Restore error_reporting - //error_reporting($errorReporting); + error_reporting($errorReporting); // Gets a native PHP array representation of the collection. $results = $collection->toArray();