I created my entity in symfony - Crud

Asked

Viewed 112 times

0

I used the command:

php bin/console generate:doctrine:crud

it generated all pages and controllers in my project, but when I enter the route to create a user of the following error:

Expected argument of type "string", "AppBundle\Form\UserType" given

Does anyone know how to fix it, or has it ever happened?

If I need to put here the code, but it is the pattern generated by symfony.3

  • Paste the generated controller code, please.

  • I have already solved it. In the Symfony version < 2 8 a new Typeabstract is passed in the createForm parameter now passes Typeabstract:class.

1 answer

0


In the Symfony version < 2 8 a new Typeabstract was passed in the createForm parameter now passes Typeabstract:class.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.