Le 09/05/2011 22:03, keymaster a écrit :
Besides doctrine:generate:entities, anyone know of a faster way than manually typing out the yaml files?
Perhaps an import from MySQL Workbench or some other data modelling tool?
The good workflow (except for legacy databases) is not to design the database but to design the objects as what you are writting is a PHP project, not a SQL one. It will allows you to have a database that fits the need of your PHP objects instead of putting constraints on them. Thus, you will have to write your classes anyway. Doctrine 2 is not about code generation. The EntityGenerator is just an helper tool but it does not handle the inheritance well and it does not work well for bidirectionnal relations as the generated setters don't take care to always update the owning side. And finally, having a CRUD app also requires to write controllers, forms and templates and Symfony2 is not about code generation either.

--
Christophe | Stof

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

Reply via email to