From 35864c2a02c5bb54731a7eba41878e4524b85830 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 21 Jan 2011 16:28:59 -0500 Subject: [PATCH] Removing AuthComponent::getModel(). Auth no longer directly interacts with models. --- cake/libs/controller/components/auth.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/cake/libs/controller/components/auth.php b/cake/libs/controller/components/auth.php index c6b1e412ac5..6e02e13d37f 100644 --- a/cake/libs/controller/components/auth.php +++ b/cake/libs/controller/components/auth.php @@ -605,29 +605,6 @@ public function redirect($url = null) { return Router::normalize($redir); } -/** - * Returns a reference to the model object specified, and attempts - * to load it if it is not found. - * - * @param string $name Model name (defaults to AuthComponent::$userModel) - * @return object A reference to a model object - */ - public function &getModel($name = null) { - $model = null; - if (!$name) { - $name = $this->userModel; - } - - $model = ClassRegistry::init($name); - - if (empty($model)) { - trigger_error(__('Auth::getModel() - Model is not set or could not be found'), E_USER_WARNING); - return null; - } - - return $model; - } - /** * Use the configured authentication adapters, and attempt to identify the user * by credentials contained in $request.