diff --git a/Web/Models/Repositories/Util/EntityStream.php b/Web/Models/Repositories/Util/EntityStream.php index 214e8023..dd8f317f 100644 --- a/Web/Models/Repositories/Util/EntityStream.php +++ b/Web/Models/Repositories/Util/EntityStream.php @@ -10,7 +10,7 @@ class EntityStream implements \IteratorAggregate function __construct(string $class, \Traversable $dbStream) { $this->dbStream = $dbStream; - $this->entityClass = "openvk\\Web\\Models\\Entities\\$class"; + $this->entityClass = $class[0] === "\\" ? $class : "openvk\\Web\\Models\\Entities\\$class"; } /**