mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
Model类和Controller类的failException更改为 validateFailException 避免和Query类的failException方法冲突
This commit is contained in:
@@ -149,7 +149,7 @@ class Controller
|
||||
* @param bool $fail 是否抛出异常
|
||||
* @return $this
|
||||
*/
|
||||
protected function failException($fail = true)
|
||||
protected function validateFailException($fail = true)
|
||||
{
|
||||
$this->failException = $fail;
|
||||
return $this;
|
||||
|
||||
@@ -740,7 +740,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
* @param bool $fail 是否抛出异常
|
||||
* @return $this
|
||||
*/
|
||||
public function failException($fail = true)
|
||||
public function validateFailException($fail = true)
|
||||
{
|
||||
$this->failException = $fail;
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user