FOS UserBundle Unable to login

后端 未结 5 688
遇见更好的自我
遇见更好的自我 2020-12-24 03:25

I\'m back with another issue regarding my UserBundle : Everything went perfect while installing and configuring FOS bundle through Symfony2, it even let me create 2 users th

5条回答
  •  无人及你
    2020-12-24 03:47

    This code works for me, YourApplicationName\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php

    i replace the existing code with the below code

    If ($this->_prototype === null) {
        $this->_prototype = @unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->name), $this->name));
    if ($this->_prototype === false) {
        $this->_prototype = unserialize(sprintf('C:%d:"%s":0:{}', strlen($this->name), $this->name));
    }
    }
    

提交回复
热议问题