Symfony + Doctrine: How to rebuild your DB

This post is about rebuilding your database from a schema.yml file in your Symfony project (Symfony version 1.4.8 embedded in the project at /path/to/your/project/lib/vendor/symfony/lib). If you make a change in your config/doctrine/schema.yml, run these commands from your project’s root directory. ./symfony doctrine:drop-db ./symfony doctrine:build-model ./symfony doctrine:build-sql ./symfony doctrine:create-db ./symfony doctrine:insert-sql drop-db drops the database. build-model […]