laravel-doctrine / orm

An integration library for Laravel and Doctrine ORM
MIT License
829 stars 179 forks source link

[BUG] Password reset broken on 1.0.* #131

Closed pmartelletti closed 8 years ago

pmartelletti commented 8 years ago

Package version, Laravel version

Using 1.0.18 and Laravel 5.1.31

Expected behaviour

When trying to reset a password, an email should be sent to the user.

Actual behaviour

Getting the following error:

Argument 1 passed to LaravelDoctrine\ORM\Auth\Passwords\DoctrineTokenRepository::__construct() must implement interface Doctrine\ORM\EntityManagerInterface, null given, called in /home/pablo/Software/php/crm-exposed/vendor/laravel-doctrine/orm/src/Auth/Passwords/PasswordResetServiceProvider.php on line 63 and defined in DoctrineTokenRepository.php line 34

@patrickbrouwers any ideas of what could be wrong? Please not that we would like to stick to Laravel 5.1, hence why we are using version 1.0.*

pmartelletti commented 8 years ago

@patrickbrouwers any comments?

FoxxMD commented 8 years ago

Can you check that in your providers in config/app.php that

LaravelDoctrine\ORM\Auth\Passwords\PasswordResetServiceProvider

is listed after

LaravelDoctrine\ORM\DoctrineServiceProvider
pmartelletti commented 8 years ago

@FoxxMD I can't be so stupid... Thanks for that!