Skip to content
Snippets Groups Projects
Commit e0a1e651 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

1.0.5 (03/12/2024)

------------------

- [Fix] Correction regressions suite sortie 1.0.4...
parent 14f6044b
No related branches found
No related tags found
No related merge requests found
Pipeline #33105 passed
...@@ -487,7 +487,7 @@ class Table ...@@ -487,7 +487,7 @@ class Table
public function merge(array $data, $key, array $options = []): array public function merge(array $data, array|string|null $key, array $options = []): array
{ {
$ddl = $this->getDdl(); $ddl = $this->getDdl();
$bdd = $this->getBdd(); $bdd = $this->getBdd();
...@@ -614,9 +614,9 @@ class Table ...@@ -614,9 +614,9 @@ class Table
case 'delete': case 'delete':
$callbackCount++; $callbackCount++;
$callbackProgress++; $callbackProgress++;
$key = [$this->makeKeyArray($o, $key)]; $k = $this->makeKeyArray($o, $key);
$this->delete($key); $this->delete($k);
if ($doCallback) call_user_func($callback, 'delete', $callbackProgress, $callbackCount, $o, $key); if ($doCallback) call_user_func($callback, 'delete', $callbackProgress, $callbackCount, $o, $k);
break; break;
case 'soft-delete': case 'soft-delete':
$toUpdate = [ $toUpdate = [
...@@ -625,9 +625,9 @@ class Table ...@@ -625,9 +625,9 @@ class Table
]; ];
$callbackCount++; $callbackCount++;
$callbackProgress++; $callbackProgress++;
$key = $this->makeKeyArray($o, $key); $k = $this->makeKeyArray($o, $key);
$this->update($toUpdate, $key, ['ddl' => $ddl]); $this->update($toUpdate, $k, ['ddl' => $ddl]);
if ($doCallback) call_user_func($callback, 'soft-delete', $callbackProgress, $callbackCount, $o, $key); if ($doCallback) call_user_func($callback, 'soft-delete', $callbackProgress, $callbackCount, $o, $k);
break; break;
case 'undelete': case 'undelete':
$toUpdate = [ $toUpdate = [
...@@ -635,9 +635,9 @@ class Table ...@@ -635,9 +635,9 @@ class Table
$options['histo-destructeur-id-column'] => null, $options['histo-destructeur-id-column'] => null,
]; ];
$callbackProgress++; $callbackProgress++;
$key = $this->makeKeyArray($o, $key); $k = $this->makeKeyArray($o, $key);
$this->update($toUpdate, $key, ['ddl' => $ddl]); $this->update($toUpdate, $k, ['ddl' => $ddl]);
if ($doCallback) call_user_func($callback, 'undelete', $callbackProgress, $callbackCount, $o, $key); if ($doCallback) call_user_func($callback, 'undelete', $callbackProgress, $callbackCount, $o, $k);
break; break;
case 'update': case 'update':
$toUpdate = $diff; $toUpdate = $diff;
...@@ -646,9 +646,9 @@ class Table ...@@ -646,9 +646,9 @@ class Table
$toUpdate[$options['histo-modificateur-id-column']] = $options['histo-user-id']; $toUpdate[$options['histo-modificateur-id-column']] = $options['histo-user-id'];
} }
$callbackProgress++; $callbackProgress++;
$key = $this->makeKeyArray($o, $key); $k = $this->makeKeyArray($o, $key);
$this->update($toUpdate, $key, ['ddl' => $ddl]); $this->update($toUpdate, $key, ['ddl' => $ddl]);
if ($doCallback) call_user_func($callback, 'update', $callbackProgress, $callbackCount, $toUpdate, $key); if ($doCallback) call_user_func($callback, 'update', $callbackProgress, $callbackCount, $toUpdate, $k);
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment