I mean you can create a method `findOneByName` in your repository and create a custom DQL/SQL query to fetch the entity/document. 

If i use `findOneBy` you can't do this.