Skip to content

Commit 74cd6f3

Browse files
RouteProvider::getRouteByName() returns a collection
1 parent 2a2b2da commit 74cd6f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doctrine/Orm/RouteProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function getCandidates($url)
4747
*/
4848
public function getRouteByName($name, $parameters = array())
4949
{
50-
$route = $this->getRoutesRepository()->findOneByName($name);
50+
$route = $this->getRoutesRepository()->findBy(array('name' => $name));
5151
if (!$route) {
5252
throw new RouteNotFoundException("No route found for name '$name'");
5353
}

0 commit comments

Comments
 (0)