变更
This commit is contained in:
@@ -186,7 +186,6 @@ class Collection extends AbstractCollection
|
|||||||
$model = $this->getModel();
|
$model = $this->getModel();
|
||||||
if ($model->hasPrimary()) {
|
if ($model->hasPrimary()) {
|
||||||
$key = $model->getPrimary();
|
$key = $model->getPrimary();
|
||||||
|
|
||||||
return $model::query()->whereIn($key, $this->column($key))->delete();
|
return $model::query()->whereIn($key, $this->column($key))->delete();
|
||||||
}
|
}
|
||||||
throw new Exception('Must set primary key. if you wante delete');
|
throw new Exception('Must set primary key. if you wante delete');
|
||||||
|
|||||||
Reference in New Issue
Block a user