Use query instead findOneBy

I don't know why but FindOneBy don't work in my case.
Merge pull request #3 from ahilles107/patch-2

Use query instead findOneBy