Assuming you have all the necessary annotations and the correct getters / setters in your php files, this is enough to call php app/console doctrine:schema:update --force . For preview purposes, ypu can use php app/console doctrine:schema:update --dump-sql . This will show you the sql to be executed.
If you only have annotated properties without getters / seters (so you created php files, added the properties you want as columns, and added their corresponding annotations), first use php app/console doctrine:generate:entities MyBundle/Entity . This will create getters / setters for you. See here for more details.
Andrej Mohar
source share