| @@ 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} |
|
| @@ 267-274 (lines=8) @@ | ||
| 264 | /** |
|
| 265 | * {@inheritdoc} |
|
| 266 | */ |
|
| 267 | public function insert($table, $data) |
|
| 268 | { |
|
| 269 | // convert to table object |
|
| 270 | if (is_string($table)) { |
|
| 271 | $table = new Table($table, [], $this->getAdapter()); |
|
| 272 | } |
|
| 273 | $table->insert($data)->save(); |
|
| 274 | } |
|
| 275 | ||
| 276 | /** |
|
| 277 | * {@inheritdoc} |
|