diff --git a/default_config.php b/default_config.php index 36ae26b..277576b 100644 --- a/default_config.php +++ b/default_config.php @@ -2,6 +2,6 @@ return [ 'MainAbstractFactory' => [ - 'Bx\\Null\\Factory\\NullFactory' => ['cache' => ['hit'], 'is_collection_query' => true], - ] + 'Bx\Null\Factory\NullFactory' => ['cache' => ['hit'], 'is_collection_query' => true], + ], ]; \ No newline at end of file diff --git a/lib/factory/nullormfactory.php b/lib/factory/nullormfactory.php index d07b038..edd9095 100644 --- a/lib/factory/nullormfactory.php +++ b/lib/factory/nullormfactory.php @@ -31,6 +31,11 @@ class NullFactory extends AORMFactory return 'bx_null'; } + public function __getCollectionClass() + { + return NullCollection::class; + } + /** * @param $id * @return NullEntity