Skip to content

Commit

Permalink
Fix #478: Override getRouteKey on the Route Entity (ORM) to return th…
Browse files Browse the repository at this point in the history
…e route name rather than the numeric ID.
  • Loading branch information
dbojdo committed Apr 8, 2022
1 parent dbea9fd commit 1341d71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Doctrine/Orm/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@ public function getPosition(): int
{
return $this->position;
}

/**
* {@inheritdoc}
*/
public function getRouteKey(): string
{
return $this->getName();
}
}

0 comments on commit 1341d71

Please sign in to comment.