mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Applying patch from ticket #2540
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5035 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e46be32f43
commit
7f32528dfa
1 changed files with 2 additions and 2 deletions
|
@ -365,7 +365,7 @@ class Controller extends Object {
|
|||
if ($this->persistModel === true) {
|
||||
$this->_persist($this->modelClass, true, $model);
|
||||
$registry = ClassRegistry::getInstance();
|
||||
$this->_persist($this->modelClass . 'registry', true, $registry->_objects, 'registry');
|
||||
$this->_persist($this->modelClass . 'registry', true, $registry->__objects, 'registry');
|
||||
}
|
||||
} else {
|
||||
$this->_persist($this->modelClass . 'registry', true, $object, 'registry');
|
||||
|
@ -404,7 +404,7 @@ class Controller extends Object {
|
|||
if ($this->persistModel === true) {
|
||||
$this->_persist($modelClass, true, $model);
|
||||
$registry = ClassRegistry::getInstance();
|
||||
$this->_persist($modelClass . 'registry', true, $registry->_objects, 'registry');
|
||||
$this->_persist($modelClass . 'registry', true, $registry->__objects, 'registry');
|
||||
}
|
||||
} else {
|
||||
$this->_persist($modelClass . 'registry', true, $object, 'registry');
|
||||
|
|
Loading…
Add table
Reference in a new issue