Adding deprecation warning to Controller::cleanUpFields()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6413 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2008-01-28 01:14:05 +00:00
parent 4e56b06f66
commit 377643cf2b

View file

@ -853,7 +853,9 @@ class Controller extends Object {
* @see Model::deconstruct()
* @deprecated as of 1.2.0.5970
*/
function cleanUpFields($modelClass = null) {}
function cleanUpFields($modelClass = null) {
trigger_error(__('Controller::cleanUpFields() - Deprecated: this functionality has been moved to Model and is handled automatically', true), E_USER_WARNING);
}
/**
* Handles automatic pagination of model records.
*