Added support for getting documents in unified Doctrine Listener