Skip to content

Commit

Permalink
Fix compatibility with older doctrine versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Aug 17, 2021
1 parent b6eac72 commit cdde35c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Migration/SliderPermissionsMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public function shouldRun(): bool
public function run(): MigrationResult
{
$defaultPermissions = serialize(['create', 'delete']);
$defaultSliders = serialize(array_values($this->connection->fetchFirstColumn("SELECT id FROM tl_rocksolid_slider")));
$defaultSliders = serialize(array_values(array_map(function ($row) {
return $row['id'];
}, $this->connection->fetchAllAssociative("SELECT id FROM tl_rocksolid_slider"))));

foreach (['tl_user', 'tl_user_group'] as $table) {
foreach ([
Expand Down

0 comments on commit cdde35c

Please sign in to comment.