If we use a normal Doctrine repository, we either need to do that:

```php
class ResetPasswordRepository extends EntityRepository // <==== dependency to ORM
```
or

```php
class ResetPasswordRepository extends DocumentRepository // <==== dependency to ODM
```

I personally think that the simplest solution is to do:

```php
$repo = $this->objectManager->get('BaconUser\Entity\PasswordReset');
```

The class of the repository is handled by the mapping, so we are sure we get the right repository. It's still pretty easy to mock as you inject the object manager so you can mock the OM. And it does not rely on convoluted solutions like the one above.