Skip to content

Commit 80395d4

Browse files
committed
better msg
1 parent f01d3a5 commit 80395d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Persistence/Array_.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function tryLoadAny(Model $model, string $table = null): ?array
156156
public function insert(Model $model, array $data, string $table = null)
157157
{
158158
if ($table !== null) {
159-
throw new \Error('debug!!');
159+
throw new \Error('debug xxx!! ' . $table . ' vs. ' . $m->table);
160160
}
161161

162162
$data = $this->typecastSaveRow($model, $data);
@@ -180,7 +180,7 @@ public function insert(Model $model, array $data, string $table = null)
180180
public function update(Model $model, $id, array $data, string $table = null)
181181
{
182182
if ($table !== null) {
183-
throw new \Error('debug!!');
183+
throw new \Error('debug xxx!! ' . $table . ' vs. ' . $m->table);
184184
}
185185

186186
$data = $this->typecastSaveRow($model, $data);
@@ -198,7 +198,7 @@ public function update(Model $model, $id, array $data, string $table = null)
198198
public function delete(Model $model, $id, string $table = null)
199199
{
200200
if ($table !== null) {
201-
throw new \Error('debug!!');
201+
throw new \Error('debug xxx!! ' . $table . ' vs. ' . $m->table);
202202
}
203203

204204
unset($this->data[$model->table][$id]);

0 commit comments

Comments
 (0)