Hi all, In PR6, I've managed to import my MySQL tables to dcm.xml files, but now I'm struggling to transform this mappings to entities. The odd thing is I was able to do it in PR5. A snippet of one of the mapped files
#/src/Agencias/DatabaseBundle/Resources/config/doctrine/metadata/orm/ Agencias.DatabaseBundle.Entity.Agencies.dcm.xml <?xml version="1.0" encoding="utf-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/ doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/ doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Agencias\DatabaseBundle\Entity\Agencies" table="agencies"> <change-tracking-policy>DEFERRED_IMPLICIT</change-tracking-policy> <id name="id" type="integer" column="id"> <generator strategy="IDENTITY"/> </id> ... To generate the entities from the mapped files, I run "php app/console doctrine:generate:entities DatabaseBundle" it says "Bundle DatabaseBundle does not contain any mapped entities." I followed these instructions http://docs.symfony-reloaded.org/guides/doctrine/orm/configuration.html#mapping-configuration and added these lines to my app/config/config.yml #config.yml doctrine.orm: mappings: DatabaseBundle: type: xml dir: Resources/config/doctrine/metadata/orm default_entity_manager: default entity_managers: default: connection: default I've also tried, with and without the trailing slash DatabaseBundle: {type:xml, dir:Resources/config/doctrine/metadata/orm} Also, I deleted the production cache without success (it worked when I wanted to import the MySQL schema, which btw drived me nuts too) Digging a little bit further in Symfony2 code, it looks like it doesn't find any BundleMetadata in DoctrineCommand.php- >getBundleMetadatas(Bundle $bundle) foreach ($entityManagers as $key => $em) { $cmf = new DisconnectedClassMetadataFactory(); $cmf->setEntityManager($em); $metadatas = $cmf->getAllMetadata(); //at this point $metadatas size is 0; there's only 1 entity manager ...} Any hint would be greatly appreciated, I've been stuck for some hours already... Thanks in advance! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en