mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
c6f9c4bdb1
commit
b2b654e7f5
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue