Answer the question
In order to leave comments, you need to log in
Doctrine + ParamConverter error when using repository_method?
controller:
/**
* @Route(path="/user/{usernameOrEmail}/exists")
* @ParamConverter("user", class="AppBundle:User",
* options={
* "repository_method" = "findByUsernameOrEmail",
* "mapping" = {"usernameOrEmail": "usernameOrEmail"}
* }
* )
* @param User $user
*/
public function checkUsernameAction(User $user)
{
}
Unable to guess how to get a Doctrine instance from the request information.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question