Howdy, I've been playing with PHP 5.3 to try out Doctrine 2 and I fell in love with it =)
I was able to set up Doctrine 2 in a couple of days by using a trivial Resource Loader Plugin (http://gist.github.com/323977). The Zend Framework Modula Architecture seems to prevent grouping all Domain Model classes in a simple hierarchy, thus my models are placed in the models directory of each module. I tried to group all my model classes in a common namespace MyApp\<module>\Model to avoid having long class names when writing DQL queries. I wrote a sample php code that illustrates my use-case and uploaded it on GitHub: http://gist.github.com/323974. The problem that the models namespace/class-name don't match 1:1 with the filesystem, so I assume Autoloader is not as good for the job as ResourceLoader is. I searched in the fw-general mailing list for related issues but found anything that was relevant to my problem. I remember I read somewhere that ResourceLoader is not capable of mapping (fully)qualified class names, right? I appreciate any suggestion that could help me find a way to solve the problem, it's not urgent, the project is just an excercise with PHP5.3, Doctrine 2 and PoEAA patterns. I hope I made myself clear. - Andrea
