On Thu, Oct 07, 2010 at 10:38:56AM +0200, Jordi Boggiano wrote: > On 07.10.2010 10:23, Stephan Ebelt wrote: > > So far I failed to create the entity classes with doctrine:generate:entities > > from the yaml files (doctrine:mapping:import worked quite nice however). > > Some > > best practices in this area would help a lot. Are you writing your entity > > classes by hand for now? I actually like to start playing with a schema I > > know well but writing that from buttom-up is just too much work. > > About entities, you can see in my Sf2 slides [1] (slide7) how you have > to setup the files and naming. Basically the name of the file has to > match the namespace of the entity (in this case > Application\BlogBundle\Entity\BlogPost) except you put dots instead of > \'s, and then append .dcm.yml, so that is: > > Application.BlogBundle.Entity.BlogPost.dcm.yml > > Then it should run with doctrine:generate:entities :)
aha I see! there were two problems with my files: 1) they were still called Application.StockmaniacBundle.Entities.Access.dcm.yml rather than Application.StockmaniacBundle.Entity.Access.dcm.yml 2) there was no subdirectory "orm", now I have all *.dcm.yml files in Application/StockmaniacBundle/Resources/config/doctrine/metadata/orm/ because of these it just didnt find any *.dcm.yml file, thus no output, no error, no anything. Now it works. thanks for the slides, they are very useful. :-) stephan > Cheers > > [1] http://slides.seld.be/?file=2010-09-28+Symfony2.html#1 > > -- > Jordi Boggiano > @seldaek :: http://seld.be/ > > -- > 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 developers" group. > To post to this group, send email to symfony-devs@googlegroups.com > To unsubscribe from this group, send email to > symfony-devs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en -- 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 developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en