We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6d39cb + 3b2d92c commit 14b2b62Copy full SHA for 14b2b62
src/SharedQueryBuilder.php
@@ -401,7 +401,7 @@ protected function getEntityClassFromFirstJoinStringArgument(string $join): stri
401
);
402
}
403
404
- if(!\class_exists($entity)) {
+ if (!\class_exists($entity) && !\interface_exists($entity)) {
405
throw new LogicException(
406
\sprintf(
407
'Found string for string join "%s" in %s is expected to be a class-string',
tests/TestCase.php
@@ -14,7 +14,7 @@ protected function createSqb(): SharedQueryBuilder
14
{
15
return new SharedQueryBuilder(
16
new QueryBuilder(
17
- $this->createStub(EntityManagerInterface::class)
+ self::createStub(EntityManagerInterface::class)
18
)
19
20
0 commit comments