mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 02:52:41 +00:00
Merge remote-tracking branch 'origin/2.0' into 2.1
This commit is contained in:
commit
b9ad469a65
5 changed files with 16 additions and 1 deletions
|
@ -1274,7 +1274,7 @@ class Model extends Object implements CakeEventListener {
|
|||
* @return array Array of table metadata
|
||||
*/
|
||||
public function schema($field = false) {
|
||||
if (!is_array($this->_schema) || $field === true) {
|
||||
if ($this->useTable !== false && (!is_array($this->_schema) || $field === true)) {
|
||||
$db = $this->getDataSource();
|
||||
$db->cacheSources = ($this->cacheSources && $db->cacheSources);
|
||||
if (method_exists($db, 'describe') && $this->useTable !== false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue