I am using Symfony 3.4 with FOSUserBundle ~ 2.0 and EasyAdminBundle ^ 1.17. This all works fine. I can log in and create a user ((of course, using the commend line)) using this toutaril but when I want to manage in EasyAdminBundle.i, this error
The "User" entity must define its associated Doctrine entity class using the "class" option.
this is my config.yml
.. . . entities: User: label: 'user' list: actions: - {name: 'delete', label: 'del' } - {name: 'edit' , lable: 'edite'} title: 'user' fields: - username - email - enabled - lastLogin class: AppBundle\Entity\User form: fields: - username - email - enabled - lastLogin
This is a custom object.
<?php namespace AppBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; class User extends BaseUser { protected $id; public function __construct() { parent::__construct();
pedram shabani
source share