We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afab995 commit 8abf328Copy full SHA for 8abf328
src/Traits/MapperTrait.php
@@ -318,7 +318,7 @@ public function delete(array $ids): bool
318
public function update(int $id, array $data): bool
319
{
320
$this->filterExecuteAttributes($data, true);
321
- return $this->model::find($id)->update($data) > 0;
+ return $this->model::query(true)->where((new $this->model)->getKeyName(), $id)->update($data) > 0;
322
}
323
324
/**
0 commit comments