sensio/SensioFrameworkExtraBundle — pull request #143 by beberlei (2012-07-26 06:33:24+00:00)
Title: [ParamConverter][Doctrine] allow to find by single-valued associations.

Fixes GH-95

I initially thought this could lead to clashes when the following
conversions are defined:

/**
* @Route("/page/{user}/{group}")
* @ParamConverter("user", {"id": "user"})
* @ParamConverter("group", {"id": "group"})
*/
public function showAction(User $user, Group $group) {}

class User
{
/** @ManyToOne(targetEntity="Group") */
private $group;
}

However through the renaming via `id` its a find by primary key anyways.
There is a slim chance before GH-141 to find two objects through
`findOneBy()` which would break because of this patch, when an association was not found before and now is included in the `$criteria`.

Should I add a UPGRADE notice?