protected function _getTableFromRequest(Request $request)
{
$plugin = Hash::get($request->params, 'plugin');
$controller = Hash::get($request->params, 'controller');
$modelClass = ($plugin ? $plugin . '.' : '') . $controller;
$this->modelFactory('Table', [$this->tableLocator(), 'get']);
if (empty($modelClass)) {
throw new OutOfBoundsException(__d('CakeDC/Users', 'Table alias is empty, please define a table alias, we could not extract a default table from the request'));
}
return $this->loadModel($modelClass);
}