Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Apr 3, 2024
1 parent 8f01b1b commit 3307387
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions tests/Mapper/Builder/OptionsBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,18 @@ public function testAddJoin(): void
static::assertSame([
'fieldName' => 'groups',
'targetEntity' => 'App\Entity\Group',
'joinColumns' => [[
'name' => 'parent_id',
'referencedColumnName' => 'id',
'onDelete' => 'CASCADE',
'joinColumns' => [
[
'name' => 'parent_id',
'referencedColumnName' => 'id',
'onDelete' => 'CASCADE',
],
[
'name' => 'another_parent_id',
'referencedColumnName' => 'id',
'onDelete' => 'CASCADE',
],
],
[
'name' => 'another_parent_id',
'referencedColumnName' => 'id',
'onDelete' => 'CASCADE',
], ],
], $builder->getOptions());
}

Expand Down

0 comments on commit 3307387

Please sign in to comment.