问题描述
很多次尝试后,我的symfony的缓存出现了问题(html页面中的更改未呈现),现在我无法通过该网站进行身份验证,这向我显示了此错误:
I had a problem with my symfony's cache (changes in html pages were not rendering ) after many Attempts now I can not authenticate to the web site ,it shows me this error :
在我的fos/userbundle/entity/User.php中,我有以下参数:
in my fos/userbundle/entity/User.php I have these parameters :
namespace FOS\UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
* @ORM\Table(name="`fos_user`")
* @ORM\MappedSuperClass
*/
class User
{
.............
在我的Bse/mybundle/entity/User.php中,我具有以下参数:
and in my Bse/mybundle/entity/User.php I have these parameters :
namespace FOS\UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
* @ORM\Table(name="`fos_user`")
* @ORM\MappedSuperClass
*/
class User
{.....
数据库中的表称为 fos_user
我在我的app.php中使用$kernel = new AppKernel('prod',false);
,在我的app_dev.php中使用$kernel = new AppKernel('dev', true);
I'm using $kernel = new AppKernel('prod',false);
in my app.php and $kernel = new AppKernel('dev', true);
in my app_dev.php
我正在寻求您的帮助
推荐答案
您没有表fos_user
,这就是问题所在.
You've got no table fos_user
, which is the problem.
您可以尝试:
php bin/console doctrine:schema:update --force
看看是否能解决问题.我认为您以某种方式进行了大更改并删除了表格?如果上述方法无效,请编辑您的信息并显示文件app/config/parameters.yml
.
See if that does the trick. I'm thinking you made a big change somehow and deleted the table? If the above doesn't work, edit your post and show the file app/config/parameters.yml
please.
这篇关于清除symfony2的缓存后,不允许身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!