FOSUserBundle和EasyAdmin-添加新组时参数太少

时间:2018-08-03 06:42:52

标签: fosuserbundle symfony4

我已经安装了fosuerbundle,一切正常,但没有团体活动。我使用Symfony4.1,当我尝试通过easyadmin添加新组时,出现如下错误:

函数FOS \ UserBundle \ Model \ Group :: __ construct()的参数太少,0在/home/.../app/vendor/easycorp/easyadmin-bundle/src/Controller/AdminController.php中传递441,预计至少1

任何想法可能是什么问题吗?

更新

StackTrace:

 at vendor/friendsofsymfony/user-bundle/Model/Group.php:40
  at FOS\UserBundle\Model\Group->__construct()
     (vendor/easycorp/easyadmin-bundle/src/Controller/AdminController.php:441)
  at EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController->createNewEntity()
  at call_user_func_array(array(object(AdminController), 'createNewEntity'), array())
     (vendor/easycorp/easyadmin-bundle/src/Controller/AdminController.php:790)
  at EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController->executeDynamicMethod('createNew<EntityName>Entity')
     (vendor/easycorp/easyadmin-bundle/src/Controller/AdminController.php:278)
  at EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController->newAction()
  at call_user_func_array(array(object(AdminController), 'newAction'), array())
     (vendor/easycorp/easyadmin-bundle/src/Controller/AdminController.php:790)
  at EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController->executeDynamicMethod('new<EntityName>Action')
     (vendor/easycorp/easyadmin-bundle/src/Controller/AdminController.php:80)
  at EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController->indexAction(object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:149)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:66)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:188)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:37)

0 个答案:

没有答案