mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Removing use of subclass method 'fullTableName()' in Datasource superclass. Fixes #100.
This commit is contained in:
parent
88a09cfbb4
commit
4d1f6b82e8
1 changed files with 7 additions and 6 deletions
|
@ -123,9 +123,9 @@ class DataSource extends Object {
|
||||||
var $_queriesLog = array();
|
var $_queriesLog = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum number of items in query log, to prevent query log taking over
|
* Maximum number of items in query log
|
||||||
* too much memory on large amounts of queries -- I we've had problems at
|
*
|
||||||
* >6000 queries on one system.
|
* This is to prevent query log taking over too much memory.
|
||||||
*
|
*
|
||||||
* @var int Maximum number of queries in the queries log.
|
* @var int Maximum number of queries in the queries log.
|
||||||
* @access protected
|
* @access protected
|
||||||
|
@ -270,7 +270,8 @@ class DataSource extends Object {
|
||||||
if ($this->cacheSources === false) {
|
if ($this->cacheSources === false) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$table = $this->fullTableName($model, false);
|
$table = $model->tablePrefix . $model->table;
|
||||||
|
|
||||||
if (isset($this->__descriptions[$table])) {
|
if (isset($this->__descriptions[$table])) {
|
||||||
return $this->__descriptions[$table];
|
return $this->__descriptions[$table];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue