Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoalioRememberMeDoctrineORM\Repository\RememberMe not found #16

Open
BnitoBzh opened this issue Sep 3, 2014 · 1 comment
Open

GoalioRememberMeDoctrineORM\Repository\RememberMe not found #16

BnitoBzh opened this issue Sep 3, 2014 · 1 comment

Comments

@BnitoBzh
Copy link

BnitoBzh commented Sep 3, 2014

An error occurs when a user wants to log out after a rememberMe connection.

Undefined method 'deleteByUidAndSid'. The method name must start with either findBy or findOneBy!

Explication :
In RememberMe Mapper class, the expression "$this->em->getRepository($this->options->getRememberMeEntityClass());" return a "Doctrine\ORM\EntityRepository"
but the expected class is "GoalioRememberMeDoctrineORM\Repository\RememberMe".

I can't find a fix ... That's why a propose to migrate the "GoalioRememberMeDoctrineORM\Repository\RememberMe" functions content directly in RememberMe Mapper.

@bevsl
Copy link

bevsl commented Nov 6, 2014

I fixed the problem by specifying the name of the entity from GoalioRememberMeDoctrineORM into goaliorememberme.global.php

'remember_me_entity_class' => 'GoalioRememberMeDoctrineORM\Entity\RememberMe',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants