File tree 2 files changed +6
-0
lines changed
src/Tqdev/PhpCrudApi/Record
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9918,6 +9918,9 @@ private function getJoinsAsPathTree(array $params): PathTree
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 ();
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ private function getJoinsAsPathTree(array $params): PathTree
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 ();
You can’t perform that action at this time.
0 commit comments