变更
This commit is contained in:
+1
-1
@@ -541,7 +541,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
|
||||
}
|
||||
$validate = $this->resolve($rule);
|
||||
if (!$validate->validation()) {
|
||||
return $this->logger->addError($validate->getError(), 'mysql');
|
||||
return \Kiri::getLogger()->addError($validate->getError(), 'mysql');
|
||||
} else {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user