best way to create tables with ORM?

Posted by ajsie on Stack Overflow See other posts from Stack Overflow or by ajsie
Published on 2010-04-17T18:30:22Z Indexed on 2010/04/17 18:43 UTC
Read the original article Hit count: 169

Filed under:
|

assume that i start coding an application from scratch, is the best way to create tables when using an ORM (doctrine), to manually create tables in mysql and then generate models from the tables, or is it the other way around, that is to create the models in php and then generate tables from models?

and if i already have a database, will the models created be optimal? cause i have heard some say that its best to create the database from scratch when using ORM, so that the relations are optimized for OOD.

share your thoughts!

© Stack Overflow or respective owner

Related posts about orm

Related posts about doctrine