Skip to content

Commit 1341d71

Browse files
author
dbojdo
committed
Fix #478: Override getRouteKey on the Route Entity (ORM) to return the route name rather than the numeric ID.
1 parent dbea9fd commit 1341d71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Doctrine/Orm/Route.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ public function getPosition(): int
5757
{
5858
return $this->position;
5959
}
60+
61+
/**
62+
* {@inheritdoc}
63+
*/
64+
public function getRouteKey(): string
65+
{
66+
return $this->getName();
67+
}
6068
}

0 commit comments

Comments
 (0)