Altering a database in symfony (doctrine)

CharlesLukas

New Member
I'm a beginner with symfony (1.4 + Doctrine), but there is a point which scares me. It seems that whenever one wants to change a model, the only way is to change the schema for the database (\[code\]config/doctrine/schema.yml\[/code\]) and then call \[code\]symphony doctrine:build\[/code\], which flushes all the current data in the database.This does not seem to me like a sane way to proceed. What if after one year my app is in production I decide that my users need to be able to add their facebook page to the profile? In other frameworks (I'm used to CakePHP) it is just a matter of adding a field in the \[code\]users\[/code\] table and modifying a model file and the profile view. In symfony... well, I don't know, that's why I'm asking here. I'm sure I'm missing something, as the symfony designers surely have considered the idea that one may want to refactor an application after the launch. What is the correct way to do this?
 
Back
Top