I created my entity in symfony - Crud

0

I used the command:

php bin/console generate:doctrine:crud

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

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

Does anyone know how to fix, or has this already happened?

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

    
asked by anonymous 20.12.2015 / 23:18

1 answer

0

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

    
15.01.2016 / 21:22