On 07.10.2010, at 10:38, 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 :)
yeah that part of the docs needs tweaking. especially since the method Jordi described only seems to work if you put one entity per yaml file, which isnt necessarily what everybody wants. regards, Lukas Kahwe Smith [email protected] -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
