1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

feat(element-queries): restore back doctrine collections #436

This commit is contained in:
Awilum
2020-07-19 11:22:17 +03:00
parent 080ccd63ed
commit 9dae3b12c7

View File

@@ -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();