We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dc5b9d commit 3634916Copy full SHA for 3634916
Doctrine/Orm/RouteProvider.php
@@ -57,7 +57,7 @@ protected function getCandidates($url)
57
*/
58
public function getRouteByName($name, $parameters = array())
59
{
60
- $route = $this->getRoutesRepository()->findBy(array('name' => $name));
+ $route = $this->getRoutesRepository()->findOneBy(array('name' => $name));
61
if (!$route) {
62
throw new RouteNotFoundException("No route found for name '$name'");
63
}
0 commit comments