| @@ 194-201 (lines=8) @@ | ||
| 191 | /** |
|
| 192 | * {@inheritdoc} |
|
| 193 | */ |
|
| 194 | public function insert($table, $data) |
|
| 195 | { |
|
| 196 | // convert to table object |
|
| 197 | if (is_string($table)) { |
|
| 198 | $table = new Table($table, [], $this->getAdapter()); |
|
| 199 | } |
|
| 200 | $table->insert($data)->save(); |
|
| 201 | } |
|
| 202 | ||
| 203 | /** |
|
| 204 | * {@inheritdoc} |
|
| @@ 278-285 (lines=8) @@ | ||
| 275 | /** |
|
| 276 | * {@inheritdoc} |
|
| 277 | */ |
|
| 278 | public function insert($table, $data) |
|
| 279 | { |
|
| 280 | // convert to table object |
|
| 281 | if (is_string($table)) { |
|
| 282 | $table = new Table($table, [], $this->getAdapter()); |
|
| 283 | } |
|
| 284 | $table->insert($data)->save(); |
|
| 285 | } |
|
| 286 | ||
| 287 | /** |
|
| 288 | * {@inheritdoc} |
|