| @@ 204-211 (lines=8) @@ | ||
| 201 | /** |
|
| 202 | * {@inheritdoc} |
|
| 203 | */ |
|
| 204 | public function insert($table, $data) |
|
| 205 | { |
|
| 206 | // convert to table object |
|
| 207 | if (is_string($table)) { |
|
| 208 | $table = new Table($table, [], $this->getAdapter()); |
|
| 209 | } |
|
| 210 | $table->insert($data)->save(); |
|
| 211 | } |
|
| 212 | ||
| 213 | /** |
|
| 214 | * {@inheritdoc} |
|
| @@ 275-282 (lines=8) @@ | ||
| 272 | /** |
|
| 273 | * {@inheritdoc} |
|
| 274 | */ |
|
| 275 | public function insert($table, $data) |
|
| 276 | { |
|
| 277 | // convert to table object |
|
| 278 | if (is_string($table)) { |
|
| 279 | $table = new Table($table, [], $this->getAdapter()); |
|
| 280 | } |
|
| 281 | $table->insert($data)->save(); |
|
| 282 | } |
|
| 283 | ||
| 284 | /** |
|
| 285 | * {@inheritdoc} |
|