Allow TableFinderTask to work with abstract models
MODIFY
src/Generator/Task/TableFinderTask.php
src/Generator/Task/TableFinderTask.php
@@ -7,7 +7,7 @@ use Cake\ORM\Association;
use Cake\ORM\Query;
use Cake\ORM\Table;
use Cake\ORM\TableRegistry;
-use Exception;
+use Throwable;
use ReflectionClass;
class TableFinderTask extends ModelTask {
@@ -75,7 +75,7 @@ class TableFinderTask extends ModelTask {
$finderMap = $this->invokeProperty($behaviors, '_finderMap');
$customFinders = array_merge($customFinders, array_keys($finderMap));
- } catch (Exception $exception) {
+ } catch (Throwable $exception) {
}
$allFinders = array_merge($allFinders, $customFinders);

Allow TableFinderTask to work with abstract models