Is there a good way to iterate all entity classes (across different modules) in Zend Framwork 2?
I already tried to go by Doctrine's EntityManager:
$entityManager->getMetadataFactory()->getLoadedMetadata();
but that does only return an empty array.
I know that one could probably do this by iterating all Classes in specific Namespaces, but that seems like a lot of overhead.
Is there maybe some way that I am missing?