改进Model类

This commit is contained in:
thinkphp
2016-06-03 16:12:09 +08:00
parent 57e72fcee0
commit 87d1fddfe5

View File

@@ -515,12 +515,12 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
}
/**
* 自动验证当前数据对象值
* @access public
* 自动验证数据
* @access protected
* @param array $data 验证数据
* @return bool
*/
public function validateData($data)
protected function validateData($data)
{
if (!empty($this->validate)) {
$info = $this->validate;