Skip to content

Commit 8fce95a

Browse files
committed
better msg
1 parent 2eb9d69 commit 8fce95a

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
@@ -151,7 +151,7 @@ public function tryLoadAny(Model $m, string $table = null): ?array
151151
public function insert(Model $m, $data, string $table = null)
152152
{
153153
if ($table !== null) {
154-
throw new \Error('debug!!');
154+
throw new \Error('debug xxx!! ' . $table . ' vs. ' . $m->table);
155155
}
156156

157157
$data = $this->typecastSaveRow($m, $data);
@@ -176,7 +176,7 @@ public function insert(Model $m, $data, string $table = null)
176176
public function update(Model $m, $id, $data, string $table = null)
177177
{
178178
if ($table !== null) {
179-
throw new \Error('debug!!');
179+
throw new \Error('debug xxx!! ' . $table . ' vs. ' . $m->table);
180180
}
181181

182182
$data = $this->typecastSaveRow($m, $data);
@@ -198,7 +198,7 @@ public function update(Model $m, $id, $data, string $table = null)
198198
public function delete(Model $m, $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[$m->table][$id]);

0 commit comments

Comments
 (0)