symfony/symfony — Issue #2988: EntityUserProvider uses the wrong method for finding refreshedUser
Author: henrikbjorn
Created: 2011-12-29 11:04:48+00:00
State: open

Currently EntityUserProvider uses `$this->repository->find($id)` but `$id` is an array returned by `$metadata->getIdentifierValues()` this generates the wrong query in DoctrineMongoDB `db.User.find({ "_id": { "id": ObjectId("4ef8608a1921dc1a6d000000") } });` if `find($id)` is changed to `findOneBy($id)` it works.

Is that a okay change? (if so ill do a PR)