Skip to content

Commit cd126db

Browse files
committed
fixes index for doctrine orm annotations
Signed-off-by: Stefan Gehrig <[email protected]>
1 parent f2e8978 commit cd126db

File tree

1 file changed

+6
-2
lines changed
  • tests/Gedmo/Tree/Fixture/Issue2582

1 file changed

+6
-2
lines changed

tests/Gedmo/Tree/Fixture/Issue2582/OU.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
/**
1111
* @Gedmo\Tree(type="nested")
1212
*
13-
* @ORM\Table(name="ous")
14-
* @ORM\Index(name="idx_tree", columns={"lft", "rgt"})
13+
* @ORM\Table(
14+
* name="ous",
15+
* indexes={
16+
* @ORM\Index(name="idx_tree", fields={"left", "right"})
17+
* }
18+
* )
1519
* @ORM\Entity()
1620
*/
1721
#[ORM\Table(name: 'ous')]

0 commit comments

Comments
 (0)