mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
Fix #20047: Throw exception when fixture not found rather than ignoring
This commit is contained in:
@ -483,6 +483,8 @@ class FixtureController extends Controller
|
||||
$config[] = $fullClassName;
|
||||
} elseif (class_exists($fullClassName . 'Fixture')) {
|
||||
$config[] = $fullClassName . 'Fixture';
|
||||
} else {
|
||||
throw new Exception('Neither fixture "' . $fullClassName . '" nor "' . $fullClassName . 'Fixture" was found.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user