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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user