From 7f32528dfa2e194f64bd90aeee879c551caabee0 Mon Sep 17 00:00:00 2001 From: dho Date: Tue, 8 May 2007 11:38:41 +0000 Subject: [PATCH] Applying patch from ticket #2540 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5035 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/controller/controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index e23699a61..c9318d9b8 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -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');