Skip to content

Commit 52ffb60

Browse files
committed
Rename option "useFallbackClass" to "allowFallbackClass".
1 parent c7a88d5 commit 52ffb60

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Association/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function junction($table = null): Table
270270

271271
$config = [];
272272
if (!$tableLocator->exists($tableAlias)) {
273-
$config = ['table' => $tableName, 'useFallbackClass' => true];
273+
$config = ['table' => $tableName, 'allowFallbackClass' => true];
274274

275275
// Propagate the connection if we'll get an auto-model
276276
if (!App::className($tableAlias, 'Model/Table', 'Table')) {

Behavior/Translate/EavStrategy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct(Table $table, array $config = [])
8282
$this->table = $table;
8383
$this->translationTable = $this->getTableLocator()->get(
8484
$this->_config['translationTable'],
85-
['useFallbackClass' => true]
85+
['allowFallbackClass' => true]
8686
);
8787

8888
$this->setupAssociations();
@@ -119,7 +119,7 @@ protected function setupAssociations()
119119
'table' => $this->translationTable->getTable(),
120120
]);
121121
} else {
122-
$fieldTable = $tableLocator->get($name, ['useFallbackClass' => true]);
122+
$fieldTable = $tableLocator->get($name, ['allowFallbackClass' => true]);
123123
}
124124

125125
$conditions = [

Behavior/Translate/ShadowTableStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __construct(Table $table, array $config = [])
8484
$this->table = $table;
8585
$this->translationTable = $this->getTableLocator()->get(
8686
$this->_config['translationTable'],
87-
['useFallbackClass' => true]
87+
['allowFallbackClass' => true]
8888
);
8989

9090
$this->setupAssociations();

Locator/TableLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ protected function createInstance(string $alias, array $options)
223223
$options += $this->_config[$alias];
224224
}
225225

226-
$useFallbackClass = $options['useFallbackClass'] ?? $this->useFallbackClass;
226+
$useFallbackClass = $options['allowFallbackClass'] ?? $this->useFallbackClass;
227227
$className = $this->_getClassName($alias, $options);
228228
if ($className) {
229229
$options['className'] = $className;

0 commit comments

Comments
 (0)