mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 10:47:44 +08:00
Merge pull request #545 from starfalling/remove-restore-in-SoftDeletes
remove unused method restoring, restored of trait SoftDeletes
This commit is contained in:
commit
8e608c72a8
@ -4,6 +4,10 @@
|
|||||||
|
|
||||||
- [#541](https://github.com/hyperf-cloud/hyperf/pull/541) Fixed bug grpc client cannot be set correctly.
|
- [#541](https://github.com/hyperf-cloud/hyperf/pull/541) Fixed bug grpc client cannot be set correctly.
|
||||||
|
|
||||||
|
## Deleted
|
||||||
|
|
||||||
|
[#545](https://github.com/hyperf-cloud/hyperf/pull/545) Deleted useless static methods `restoring` and `restored` of trait SoftDeletes.
|
||||||
|
|
||||||
# v1.0.14 - 2019-09-05
|
# v1.0.14 - 2019-09-05
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
@ -89,26 +89,6 @@ trait SoftDeletes
|
|||||||
return ! is_null($this->{$this->getDeletedAtColumn()});
|
return ! is_null($this->{$this->getDeletedAtColumn()});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Register a restoring model event with the dispatcher.
|
|
||||||
*
|
|
||||||
* @param \Closure|string $callback
|
|
||||||
*/
|
|
||||||
public static function restoring($callback)
|
|
||||||
{
|
|
||||||
static::registerModelEvent('restoring', $callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register a restored model event with the dispatcher.
|
|
||||||
*
|
|
||||||
* @param \Closure|string $callback
|
|
||||||
*/
|
|
||||||
public static function restored($callback)
|
|
||||||
{
|
|
||||||
static::registerModelEvent('restored', $callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if the model is currently force deleting.
|
* Determine if the model is currently force deleting.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user