We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da03cc4 commit 4c70be0Copy full SHA for 4c70be0
en/development/configuration.rst
@@ -584,12 +584,13 @@ class like so::
584
$isCakeBakeShellRunning = (PHP_SAPI === 'cli' && isset($argv[1]) && $argv[1] === 'bake');
585
if (!$isCakeBakeShellRunning) {
586
EventManager::instance()->on('Model.initialize', function($event) {
587
+ /** @var \Cake\ORM\Table $subject */
588
$subject = $event->getSubject();
589
if (get_class($subject) === 'Cake\ORM\Table') {
- $msg = sprintf(
590
+ $message = sprintf(
591
'Missing table class or incorrect alias when registering table class for database table %s.',
592
$subject->getTable());
- throw new InternalErrorException($msg);
593
+ throw new InternalErrorException($message);
594
}
595
});
596
0 commit comments