@@ -48,7 +48,7 @@ |
||
| 48 | 48 | // extend the SQL logger |
| 49 | 49 | $this->loggerBackup = $em->getConnection()->getConfiguration()->getSQLLogger(); |
| 50 | 50 | $loggerChain = new LoggerChain(); |
| 51 | - $loggerChain->addLogger(new AuditLogger(function () use ($em) { |
|
| 51 | + $loggerChain->addLogger(new AuditLogger(function() use ($em) { |
|
| 52 | 52 | // flushes pending data |
| 53 | 53 | $em->getConnection()->getConfiguration()->setSQLLogger($this->loggerBackup); |
| 54 | 54 | $uow = $em->getUnitOfWork(); |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | private $configuration; |
| 14 | 14 | |
| 15 | - private $inserted = []; // [$source, $changeset] |
|
| 16 | - private $updated = []; // [$source, $changeset] |
|
| 17 | - private $removed = []; // [$source, $id] |
|
| 18 | - private $associated = []; // [$source, $target, $mapping] |
|
| 19 | - private $dissociated = []; // [$source, $target, $id, $mapping] |
|
| 15 | + private $inserted = []; // [$source, $changeset] |
|
| 16 | + private $updated = []; // [$source, $changeset] |
|
| 17 | + private $removed = []; // [$source, $id] |
|
| 18 | + private $associated = []; // [$source, $target, $mapping] |
|
| 19 | + private $dissociated = []; // [$source, $target, $id, $mapping] |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @var AuditHelper |
@@ -294,7 +294,7 @@ |
||
| 294 | 294 | public function getEntityTableAuditName($entity): string |
| 295 | 295 | { |
| 296 | 296 | $entityName = \is_string($entity) ? $entity : \get_class($entity); |
| 297 | - $schema = $this->getClassMetadata($entityName)->getSchemaName() ? $this->getClassMetadata($entityName)->getSchemaName() . '.' : ''; |
|
| 297 | + $schema = $this->getClassMetadata($entityName)->getSchemaName() ? $this->getClassMetadata($entityName)->getSchemaName().'.' : ''; |
|
| 298 | 298 | |
| 299 | 299 | return sprintf('%s%s%s%s', $schema, $this->configuration->getTablePrefix(), $this->getEntityTableName($entityName), $this->configuration->getTableSuffix()); |
| 300 | 300 | } |