doctrine/search — pull request #33 by mikelohmann (2011-11-17 08:27:53+00:00)
Title: Implemented a possible way to receive the reflected classes from the documentManager

In the sandbox directory in run.php I started a test setup an instantiated a documentManager.

My thought is to use the documentManager's allready reflectedClasses (in the example a BlogPost) to find the annotations needed for the searchmanger's configuration.

So I registered the SearchAnnotationDriver to listen on loadClassMetadata-Event from the documentManager. In this way I would register other Actions for the other Lifecyle-Events.

Can someone with knowledge about the thoughts behind doctrine review that approach, please? I have the feeling that my approach is dirty and I have not enough knowledge to create a clean solution.