Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion from parameter to object not working as intended in Symfony 6.3 #94

Open
JesusRedGar opened this issue Dec 12, 2023 · 1 comment

Comments

@JesusRedGar
Copy link

The following code doesn't work as intended:

 #[Route('/{id}', name: 'inicio')]
 #[Breadcrumb(title: "{convocatoria}" , routeName:'concursotraslados_inicio', routeParameters: ['id' => '{id}'])]
 public function inicio(Convocatoria $convocatoria) : Response
    {

Instead of showing __tostring of the object "convocatoria" it renders as "{convocatoria}" (literal), here is a image:

image

In the documentation, @ParamConverter is referenced. But that is deprecated and I undestand it shouldn't be used.

Is there an alternative way to do this?

@rvanlaak
Copy link
Collaborator

Can you try making a repo with the minimum amount of code that reproduces this issue? This bundle is considered feature-ready, so based on the info you provided above it is hard to find out what is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants