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

[make:crud] Missing use statement for EntityManagerInterface #1113

Closed
weaverryan opened this issue May 6, 2022 · 0 comments · Fixed by #1115
Closed

[make:crud] Missing use statement for EntityManagerInterface #1113

weaverryan opened this issue May 6, 2022 · 0 comments · Fixed by #1115
Labels

Comments

@weaverryan
Copy link
Member

Hi!

After #1106, I think we lost the EntityManagerInterface use statement needed for make:crud. Well, actually, I think the problem might be that it's generating EntityManagerInterface arguments instead of my proper custom repo - e.g. ProductRepository: https://github.com/symfony/maker-bundle/blob/main/src/Resources/skeleton/crud/controller/Controller.tpl.php#L38-L42

The problem is that we removed the repository_full_class_name variable in #1106, but it's still being referenced in the template.

Cheers!

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

Successfully merging a pull request may close this issue.

2 participants