\Cake\ORM\LocatorLocatorAwareTrait

Contains method for setting and accessing LocatorInterface instance

Summary

Methods
Properties
Constants
tableLocator()
setTableLocator()
getTableLocator()
No public properties found
No constants found
No protected methods found
$_tableLocator
N/A
No private methods found
No private properties found
N/A

Properties

Methods

tableLocator()

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

LocatorInterface instance.

Returns

\Cake\ORM\Locator\LocatorInterface

setTableLocator()

setTableLocator(\Cake\ORM\Locator\LocatorInterface  $tableLocator) : $this

Sets the table locator.

Parameters

\Cake\ORM\Locator\LocatorInterface $tableLocator

LocatorInterface instance.

Returns

$this