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