Merge pull request #545 from starfalling/remove-restore-in-SoftDeletes

remove unused method restoring, restored of trait SoftDeletes
This commit is contained in:
李铭昕 2019-09-07 15:56:36 +08:00 committed by GitHub
commit 8e608c72a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 20 deletions

View File

@ -4,6 +4,10 @@
- [#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
## Added

View File

@ -89,26 +89,6 @@ trait SoftDeletes
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.
*