Commit 4486b466 authored by Tomas Lang's avatar Tomas Lang

EntityFactory: remove dependency on collections

parent e3485f86
......@@ -16,11 +16,9 @@ class EntityFactory implements \LeanMapper\IEntityFactory
/*
* @inheritdoc
*/
public function createCollection(array $entities, $class = NULL)
public function createCollection(array $entities)
{
if (!(class_exists($class) && is_subclass_of($class, 'FakturacniSystem\\Collections\\Collection')))
$class = 'FakturacniSystem\\Collections\\Collection';
return new $class($entities);
return $entities;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment