Updating warning for Model::validates()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6087 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-11-26 19:48:46 +00:00
parent c6f9c4bdb1
commit b2b654e7f5

View file

@ -1803,7 +1803,7 @@ class Model extends Overloadable {
*/
function validates($data = array()) {
if (!empty($data)) {
trigger_error(__('(Model::validates) Parameter usage is deprecated, set the $data property instead', true), E_USER_WARNING);
trigger_error(__('(Model::validates) Parameter usage is deprecated, use Model::set() to update your fields first', true), E_USER_WARNING);
}
$errors = $this->invalidFields($data);
if (is_array($errors)) {