@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\DBAL\Connection; |
| 6 | 6 | use Doctrine\DBAL\Schema\Schema; |
| 7 | -use Doctrine\DBAL\Schema\SchemaDiff; |
|
| 8 | 7 | use Psr\Log\LoggerInterface; |
| 9 | 8 | use Psr\Log\NullLogger; |
| 10 | 9 | use Wabel\Zoho\CRM\AbstractZohoDao; |
@@ -283,12 +283,12 @@ |
||
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | foreach ($deletedRecordIds as $id) { |
| 286 | - $this->connection->delete($tableName, [ 'id' => $id ]); |
|
| 286 | + $this->connection->delete($tableName, ['id' => $id]); |
|
| 287 | 287 | if ($twoWaysSync) { |
| 288 | 288 | // TODO: we could detect if there are changes to be updated to the server and try to warn with a log message |
| 289 | 289 | // Also, let's remove the newly created field (because of the trigger) to avoid looping back to Zoho |
| 290 | - $this->connection->delete('local_delete', [ 'table_name' => $tableName, 'id' => $id ]); |
|
| 291 | - $this->connection->delete('local_update', [ 'table_name' => $tableName, 'id' => $id ]); |
|
| 290 | + $this->connection->delete('local_delete', ['table_name' => $tableName, 'id' => $id]); |
|
| 291 | + $this->connection->delete('local_update', ['table_name' => $tableName, 'id' => $id]); |
|
| 292 | 292 | } |
| 293 | 293 | } |
| 294 | 294 | |