$doctrineTables[] = $m->getTableName();
]]>$em = $this->getDoctrine()->getManager();
$doctrineTables = array();
$allTables = array();
$meta = $em->getMetadataFactory()->getAllMetadata();
foreach ($meta as $m) {
$doctrineTables[] = $m->getName();
}
$tables = $em->getConnection()->getSchemaManager()->listTables();
foreach ($tables as $table) {
$allTables[] = $table->getName();
}
Thanks for the post!
]]>$manager = new DisconnectedMetadataFactory($this->getContainer()->get(‘doctrine’));
$bundle = $this->getKernel()->getBundle($bundleName);
$metadata = $manager->getBundleMetadata($bundle);
if by path you mean the namespace it could get you problems if you strip it off. if you reduced the class to its simple name e.g. by array_pop(explode(‘\\’, $m->getName())) you might have naming conflicts and your routes might not be identified correctly.
however this is not true if you are sure you are only using entities from one namespace.
post the code how you plan to create the links to your route on http://pastebin.com/ and i might be able to help!
]]>