Trait LocatorAwareTrait
Contains method for setting and accessing LocatorInterface instance
Namespace: Cake\ORM\Locator
Property Summary
-
$_tableLocator protected
Cake\ORM\Locator\LocatorInterface
Table locator instance
Method Summary
-
tableLocator() public
Sets the table locator. If no parameters are passed, it will return the currently used locator.
Method Detail
tableLocator() ¶ public
tableLocator(Cake\ORM\Locator\LocatorInterface|null $tableLocator = null): Cake\ORM\Locator\LocatorInterface
Sets the table locator. If no parameters are passed, it will return the currently used locator.
Parameters
-
Cake\ORM\Locator\LocatorInterface|null
$tableLocator optional LocatorInterface instance.
Returns
Cake\ORM\Locator\LocatorInterface