Commit e69b425f authored by David Surville's avatar David Surville
Browse files

[Fix] Erreur sur l'entité utilisée par défaut pour le paramètre 'user_entity_class'

parent 64739900
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ return [
        ],

        // telling ZfcUser to use our own class
        'user_entity_class' => 'UnicaenAuthentification\Entity\Db\User',
        'user_entity_class' => 'UnicaenUtilisateur\Entity\Db\User',
        // telling ZfcUserDoctrineORM to skip the entities it defines
        'enable_default_entities' => false,
    ],
+4 −3
Original line number Diff line number Diff line
@@ -18,20 +18,20 @@ class People extends BasePeople implements UserInterface, ProviderInterface
    /**
     * @var string
     */
    protected string $usernameAttributeName = 'supannAliasLogin';
    protected string $usernameAttributeName = 'supannaliaslogin';


    /**
     * @param string $usernameAttributeName
     * @return People
     */
    public function setUsernameAttributeName(string $usernameAttributeName): People
    public function setUsernameAttributeName(string $usernameAttributeName) : self
    {
        $this->usernameAttributeName = $usernameAttributeName;

        return $this;
    }


    /**
     * Constructeur.
     * 
@@ -42,6 +42,7 @@ class People extends BasePeople implements UserInterface, ProviderInterface
        if ($data instanceof BasePeople) {
            $data = $data->getData();
        }

        parent::__construct($data);
    }