doctrine/phpcr-odm — pull request #145 by dbu (2012-06-12 12:11:30+00:00)
Title: adding a findOne method without class to document manager

this was a simplification proposer by @beberlei at the symfony hackday. having to pass `null` as first parameter everywhere is awkward. we can't change the `find` method though, as it is part of the interface.

we should also think whether we could offer simplified methods for findMany and findTranslation. having a different order in findMany than in find seems bad though and would pose problems if findMany would ever be moved into the interface, so not really sure if/how we want to do that. for findTranslation i think changing the order to have $className = null as last paramter after the $fallback = true param would sound ok to me, as the method signature its quite different anyway.