When I install FOSUserBundle ( official documentation ), I try to generate the fos_user table with this command:
php app/console doctrine:schema:update
But the console returns the following message
Do not update anything - your database is already synchronized with the current metadata of the object
I am using Symfony 2.1 and the latest version for FOSUserBundle.
app / AppKernel.php contains
new FOS\UserBundle\FOSUserBundle(),
app / config / config.yml contains
fos_user: db_driver: orm
src / Krpano / UserBundle / Entity / User.php contains
namespace Krpano\UserBundle\Entity; use FOS\UserBundle\Entity\User as BaseUser; use Doctrine\ORM\Mapping as ORM; class User extends BaseUser { protected $id; public function __construct() { parent::__construct();
And when I try to access my site, I have this error:
MappingException: class "Krpano \ UserBundle \ Entity \ User" was not found in the name chains specified by the chain FOS \ UserBundle \ Entity, Krpano \ ServicesBundle \ Entity
Can you help me?
source share