On this page
Trait LocatorAwareTrait
Contains method for setting and accessing LocatorInterface instance
Direct Users
- Cake\Console\Shell
 - Cake\Controller\Controller
 - Cake\ORM\Association
 - Cake\ORM\Behavior\TranslateBehavior
 - Cake\View\Cell
 
Indirect Users
- Cake\Controller\ErrorController
 - Cake\ORM\Association\BelongsTo
 - Cake\Shell\PluginShell
 - Cake\Shell\RoutesShell
 - Cake\Shell\ServerShell
 - Cake\Shell\Task\AssetsTask
 - Cake\Shell\Task\CommandTask
 - Cake\Shell\Task\ExtractTask
 - Cake\Shell\Task\LoadTask
 - Cake\Shell\Task\UnloadTask
 - Cake\ORM\Association\BelongsToMany
 - Cake\ORM\Association\HasMany
 - Cake\ORM\Association\HasOne
 - Cake\Shell\CacheShell
 - Cake\Shell\CommandListShell
 - Cake\Shell\CompletionShell
 - Cake\Shell\I18nShell
 - Cake\Shell\OrmCacheShell
 
Properties summary
- 
    Table locator instance
$_tableLocatorprotected 
Method Summary
- 
    tableLocator() public
Sets the table locator. If no parameters are passed, it will return the currently used locator.
 
Method Detail
tableLocator()source public
tableLocator( Cake\ORM\Locator\LocatorInterface $tableLocator null )
   Sets the table locator. If no parameters are passed, it will return the currently used locator.
Parameters
Cake\ORM\Locator\LocatorInterface$tableLocatoroptional null- LocatorInterface instance.
 
Returns
Cake\ORM\Locator\LocatorInterfaceProperties detail
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
 https://api.cakephp.org/3.3/class-Cake.ORM.Locator.LocatorAwareTrait.html