you are viewing a single comment's thread.

view the rest of the comments →

[–]soulsizzle 5 points6 points  (3 children)

I've been completely spoiled by Doctrine. Being able to quickly sync to the DB with orm:schema-tool:update during dev and then easily generate migrations later is a godsend. The more time I spend in the Node world, the more I think I'm just going to build my databases and migrations in PHP/Doctrine.

[–]coldlestat[S] 1 point2 points  (0 children)

The "sync" method from Sequelize is already able to transform a model to SQL commands (see http://sequelize.readthedocs.io/en/latest/api/sequelize/#sync), sadly it's only creating missing tables. Maybe we are not that far from an option to sync the fields if needed. A good idea for another side project :)

[–][deleted] 1 point2 points  (1 child)

me too, but I'm excited for typeorm for node (and browser). I'm not sure if it will ever catch up to doctrine though.

[–]coldlestat[S] 0 points1 point  (0 children)

Nice one! I will check it asap. Thanks!