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:
dho 2007-05-08 11:38:41 +00:00
parent e46be32f43
commit 7f32528dfa

View file

@ -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');