Skip to content

Commit 2d6024f

Browse files
committed
fix for #637
1 parent a95d699 commit 2d6024f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

api.php

+3
Original file line numberDiff line numberDiff line change
@@ -9918,6 +9918,9 @@ private function getJoinsAsPathTree(array $params): PathTree
99189918
foreach ($params['join'] as $tableNames) {
99199919
$path = array();
99209920
foreach (explode(',', $tableNames) as $tableName) {
9921+
if (!$this->reflection->hasTable($tableName)) {
9922+
continue;
9923+
}
99219924
$t = $this->reflection->getTable($tableName);
99229925
if ($t != null) {
99239926
$path[] = $t->getName();

src/Tqdev/PhpCrudApi/Record/RelationJoiner.php

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ private function getJoinsAsPathTree(array $params): PathTree
6262
foreach ($params['join'] as $tableNames) {
6363
$path = array();
6464
foreach (explode(',', $tableNames) as $tableName) {
65+
if (!$this->reflection->hasTable($tableName)) {
66+
continue;
67+
}
6568
$t = $this->reflection->getTable($tableName);
6669
if ($t != null) {
6770
$path[] = $t->getName();

0 commit comments

Comments
 (0)