Skip to content

Commit 3e3c023

Browse files
committed
Switch join columns around, otherwise index doesnt match
1 parent 5e6d5c0 commit 3e3c023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Tests/Models/EagerFetchedCompositeOneToMany/SecondLevel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class SecondLevel
3333
/**
3434
* @ORM\ManyToOne(targetEntity=RootEntity::class, inversedBy="secondLevel")
3535
* @ORM\JoinColumns({
36-
* @ORM\JoinColumn(name="root_other_key", referencedColumnName="other_key"),
37-
* @ORM\JoinColumn(name="root_id", referencedColumnName="id")
36+
* @ORM\JoinColumn(name="root_id", referencedColumnName="id"),
37+
* @ORM\JoinColumn(name="root_other_key", referencedColumnName="other_key")
3838
* })
3939
*
4040
* @var RootEntity

0 commit comments

Comments
 (0)