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 :)

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 [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

Reply via email to