Ignore me. I solved the problem. For anybody interested, you must add your bundles to 'doctrine.orm.mappings' if you want to be able to use their mappings.
eg... doctrine: orm: mappings: UserBundle: ~ On Mar 8, 8:07 pm, Craige <clee...@gmail.com> wrote: > I'm trying to create some Doctrine entities from yml schema, but I'm > running into trouble: > > $ app/console doctrine:generate:entities UserBundle > --- > "Bundle UserBundle does not contain any mapped entities." > > However I know that that entities exist in this the entity dirctory. I > then try: > > $ app/console doctrine:generate:entity UserBundle User > --- > Generating entity for "UserBundle" > > entity Musphere\UserBundle\Entity\User into /src/musphere/src/ > Musphere/UserBundle/Entity/User.php > > mapping into /src/musphere/src/Musphere/UserBundle/Resources/ > config/doctrine/metadata/orm/Musphere.UserBundle.Entity.User.dcm.xml > > and proceed to delete the User.php entity. I then run the > generate:entities command again, and am still told that no mapped > entities exist, even though Symfony just created one! I cannot re-run > the generate:entity command until I delete the xml entity mapping, > else I am told > > " Cannot generate entity when mapping /src/musphere/src/Musphere/ > UserBundle/Resources/config/doctrine/metadata/orm/ > Musphere.UserBundle.Entity.User.dcm.xml already exists" > > Is this a bug? -- 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