mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding fix for #2210
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4655 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
38577ca149
commit
2925df7c54
1 changed files with 3 additions and 3 deletions
|
@ -273,13 +273,13 @@ class DataSource extends Object{
|
|||
* @return mixed
|
||||
*/
|
||||
function describe($model) {
|
||||
if (isset($this->__descriptions[$model->table])) {
|
||||
return $this->__descriptions[$model->table];
|
||||
if (isset($this->__descriptions[$model->tablePrefix.$model->table])) {
|
||||
return $this->__descriptions[$model->tablePrefix.$model->table];
|
||||
}
|
||||
$cache = $this->__cacheDescription($model->tablePrefix.$model->table);
|
||||
|
||||
if ($cache !== null) {
|
||||
$this->__descriptions[$model->table] =& $cache;
|
||||
$this->__descriptions[$model->tablePrefix.$model->table] =& $cache;
|
||||
return $cache;
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue