jjzjj

TaskBundle

全部标签

php - 复制演示 "You cannot define a sequence item when in a mapping"时出错

我在尝试重现Symfony提供的演示时遇到错误。你可以在这里找到它。http://symfony.com/doc/current/book/forms.html#book-form-creating-form-classes当我将表单包含在Controller中时,我可以使表单正常工作,但是当我将表单作为自己的类时,我最终会收到一条错误消息。Youcannotdefineasequenceitemwheninamapping500InternalServerError-ParseException日志返回:CRITICAL-UncaughtPHPExceptionSymfony\Com