Skip to content

Commit

Permalink
Merge pull request #610 from cakephp/3.x-fix-app-table
Browse files Browse the repository at this point in the history
Dont allow historic app table to trip up
  • Loading branch information
markstory authored Mar 22, 2023
2 parents f7865b0 + 9f40c55 commit 8eaf51d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TableFinderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8eaf51d

Please sign in to comment.