Trait LocatorAwareTrait
Contains method for setting and accessing LocatorInterface instance
Namespace: Cake\ORM\Locator
Property Summary
-
$_tableLocator protected
Cake\ORM\Locator\LocatorInterface|null
Table locator instance
Method Summary
-
getTableLocator() public
Gets the table locator.
-
setTableLocator() public
Sets the table locator.
Method Detail
getTableLocator() ¶ public
getTableLocator(): Cake\ORM\Locator\LocatorInterface
Gets the table locator.
Returns
Cake\ORM\Locator\LocatorInterface
setTableLocator() ¶ public
setTableLocator(Cake\ORM\Locator\LocatorInterface $tableLocator): $this
Sets the table locator.
Parameters
-
Cake\ORM\Locator\LocatorInterface
$tableLocator LocatorInterface instance.
Returns
$this