Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的配置中,我doctrine.orm.auto_mapping设置为 true。所以 Doctrine Bridge 代码会自动在我的包的实体目录中查找。是否有可返回注册实体类列表的 gettable 服务?
doctrine.orm.auto_mapping
Try:
$entityManager = $this->getDoctrine()->getEntityManager(); $metaData = $entityManager->getMetadataFactory()->getAllMetadata(); var_dump($metaData);