Skip to content

Commit

Permalink
allow doctrine/dbal ^3.3 (#13)
Browse files Browse the repository at this point in the history
fix for doctrine/dbal:3.0
  • Loading branch information
cdaguerre authored Oct 19, 2022
1 parent df8af66 commit eb6e5d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Anonymizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public function anonymize(Connection $connection, array $targets)
->getSQL()
;
$fetchRowsStmt = $connection->prepare($fetchRowsSQL);
$fetchRowsStmt->execute();
$result = $fetchRowsStmt->execute();

// Anonymize all rows in current target table.
while ($row = $fetchRowsStmt->fetch()) {
while ($row = $result->fetch()) {
$values = [];
// Anonymize all target fields in current row.
foreach ($targetTable->getTargetFields() as $targetField) {
Expand Down

0 comments on commit eb6e5d7

Please sign in to comment.