diff --git a/src/TableFinderTrait.php b/src/TableFinderTrait.php index ca004d1f..8a481be4 100644 --- a/src/TableFinderTrait.php +++ b/src/TableFinderTrait.php @@ -156,6 +156,10 @@ protected function fetchTableName($className, $pluginName = null) { $tables = []; $className = str_replace('Table.php', '', $className); + if (!$className) { + return $tables; + } + if ($pluginName !== null) { $className = $pluginName . '.' . $className; }