From 0c80f1f041a2e4212895a0b202b2d18c41022c0f Mon Sep 17 00:00:00 2001 From: Alma Armas Date: Wed, 27 Jan 2021 18:01:18 +0000 Subject: [PATCH] Util: EntityStreams now accepts FQCNs if they're prefixed with \ --- Web/Models/Repositories/Util/EntityStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } /**