Skip to content

Commit

Permalink
Fix for deprecated fetchAll > fetchAllAssociative (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
promatik authored Apr 3, 2021
1 parent a5f809a commit b34ea46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tracer.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private function extractColumns(Model $model)
});

if ($uses_enums) {
$definitions = $model->getConnection()->getDoctrineConnection()->fetchAll($schema->getDatabasePlatform()->getListTableColumnsSQL($table, $database));
$definitions = $model->getConnection()->getDoctrineConnection()->fetchAllAssociative($schema->getDatabasePlatform()->getListTableColumnsSQL($table, $database));

collect($columns)->filter(function ($column) {
return $column->getType() instanceof \Blueprint\EnumType;
Expand Down

0 comments on commit b34ea46

Please sign in to comment.