我有一个Symfony 4实体,它包含一个用于“已删除”的布尔属性。在我的存储库中,我只返回未标记为已删除的实体。当用户编辑实体并显示表单时,有一个“已删除”的复选框,我想隐藏它。我尝试这样做,将字段类型更改为HiddenType,如下所示: public function buildForm(FormBuilderInterface $builder, array $option
我们正在尝试从CustomerProfileType扩展,我们得到的错误如下:"code": 500,
"message": "Could not load type "abc\Form\Extension\AdminApi\CustomerProfileTypeExtension": class does not implement "Symfony\Component\Form\FormTypeInterface