Maurits van der Schee 5 years ago
parent
commit
2d6024f84c
2 changed files with 6 additions and 0 deletions
  1. 3
    0
      api.php
  2. 3
    0
      src/Tqdev/PhpCrudApi/Record/RelationJoiner.php

+ 3
- 0
api.php View File

@@ -9918,6 +9918,9 @@ namespace Tqdev\PhpCrudApi\Record {
9918 9918
                 foreach ($params['join'] as $tableNames) {
9919 9919
                     $path = array();
9920 9920
                     foreach (explode(',', $tableNames) as $tableName) {
9921
+                        if (!$this->reflection->hasTable($tableName)) {
9922
+                            continue;
9923
+                        }
9921 9924
                         $t = $this->reflection->getTable($tableName);
9922 9925
                         if ($t != null) {
9923 9926
                             $path[] = $t->getName();

+ 3
- 0
src/Tqdev/PhpCrudApi/Record/RelationJoiner.php View File

@@ -62,6 +62,9 @@ class RelationJoiner
62 62
             foreach ($params['join'] as $tableNames) {
63 63
                 $path = array();
64 64
                 foreach (explode(',', $tableNames) as $tableName) {
65
+                    if (!$this->reflection->hasTable($tableName)) {
66
+                        continue;
67
+                    }
65 68
                     $t = $this->reflection->getTable($tableName);
66 69
                     if ($t != null) {
67 70
                         $path[] = $t->getName();

Loading…
Cancel
Save