mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Util: EntityStreams now accepts FQCNs if they're prefixed with \
This commit is contained in:
parent
0bdca7a0ff
commit
0c80f1f041
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class EntityStream implements \IteratorAggregate
|
||||||
function __construct(string $class, \Traversable $dbStream)
|
function __construct(string $class, \Traversable $dbStream)
|
||||||
{
|
{
|
||||||
$this->dbStream = $dbStream;
|
$this->dbStream = $dbStream;
|
||||||
$this->entityClass = "openvk\\Web\\Models\\Entities\\$class";
|
$this->entityClass = $class[0] === "\\" ? $class : "openvk\\Web\\Models\\Entities\\$class";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue