| @@ 251-258 (lines=8) @@ | ||
| 248 | /** |
|
| 249 | * {@inheritdoc} |
|
| 250 | */ |
|
| 251 | public function insert($table, $data) |
|
| 252 | { |
|
| 253 | // convert to table object |
|
| 254 | if (is_string($table)) { |
|
| 255 | $table = new Table($table, [], $this->getAdapter()); |
|
| 256 | } |
|
| 257 | $table->insert($data)->save(); |
|
| 258 | } |
|
| 259 | ||
| 260 | /** |
|
| 261 | * {@inheritdoc} |
|
| @@ 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} |
|