Open

Description
Hi,
I am using FosRestBundle, and when I add a manual route with a name, I get "Missing Route" when generating a URL for it. If I remove the name and use the name generated by fosrest, I don't have that issue.
Also note that debug:router returns the right routes and names. And generateUrl returns the right url too.
// OrganisationController.php
...
/**
* @Rest\Get("/{organisation}", name="mysuperapp_organisation_get")
*/
public function getOrganisationAction(Organisation $organisation)
{
return $this-get('serializer')->toArray($organisation);
}
/**
* @Rest\Post("/new", name="mysuperapp_organisation_post_new")
*/
public function newOrganisationAction(Request $request)
{
...
// I get Missing Route here
$absUrl = $this->generateUrl('mysuperapp_organisation_get', ['organisation' => $organisation->getId()], true));
...
}