eee
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ class Collection extends AbstractCollection
|
||||
public function update(array $attributes): bool
|
||||
{
|
||||
if ($this->isEmpty()) {
|
||||
return $this->getLogger()->failure('No data by update', 'mysql');
|
||||
return $this->getLogger()->logCategory('No data by update', 'mysql');
|
||||
}
|
||||
return $this->batch()->update($attributes);
|
||||
}
|
||||
@@ -150,7 +150,7 @@ class Collection extends AbstractCollection
|
||||
{
|
||||
$model = $this->getModel();
|
||||
if ($this->isEmpty()) {
|
||||
return $this->getLogger()->failure('No data by delete', 'mysql');
|
||||
return $this->getLogger()->logCategory('No data by delete', 'mysql');
|
||||
}
|
||||
if (!$model->hasPrimary()) {
|
||||
throw new Exception('Must set primary key. if you want to delete data');
|
||||
|
||||
Reference in New Issue
Block a user