Symfony HWIOAuthBundle';s PathUserResponse错误

Symfony HWIOAuthBundle';s PathUserResponse错误,symfony,oauth,Symfony,Oauth,在我的项目中,几乎所有的东西都工作得很好,除了当我与一个在我的数据库中没有通信的用户(FOSUserBundle)登录(使用facebook)时,我被重定向到/registration/{id}只会得到一个错误: 表单的视图数据应该是Naroga\Reader\CommonBundle\Entity\User类的实例,但却是HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse类的实例。通过将“data\u class”选项设置为null或添

在我的项目中,几乎所有的东西都工作得很好,除了当我与一个在我的数据库中没有通信的用户(FOSUserBundle)登录(使用facebook)时,我被重定向到/registration/{id}只会得到一个错误:

表单的视图数据应该是Naroga\Reader\CommonBundle\Entity\User类的实例,但却是HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse类的实例。通过将“data\u class”选项设置为null或添加一个视图转换器,将HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse类的实例转换为Naroga\Reader\CommonBundle\Entity\User类的实例,可以避免此错误。

我还必须覆盖connect.confirm.html.twig以删除以下行:

{% if userInformation.profilePicture is not empty %}
    <img src="{{ userInformation.profilePicture }}" />
{% endif %}
{%如果userInformation.profilePicture不是空的%}
{%endif%}

它说PathUserResponse没有profilePicture方法。我猜我不应该使用PathUserResponse,但我不知道我做错了什么。有人能给我指出正确的方向吗?

HWI/OAuth Bundle的好心人已经解决了这个问题。我以为我做错了什么,但那些其实是已知的bug