How to Change the Database Schema for Symfony
11 January 2012
- Use phpMyadmin to change your database schema (the structure of your database).
-
Change the schema.yml file to reflect the changes you made in the database in phpMyadmin
• file can be found in: /config/doctrine/schema.yml -
Regenerate the Symfony model classes.
- Symfony is going to use your schema file and generate classes based on your database tables.
-
The command to use in command prompt is:
./symfony doctrine:build --all-classes
-
Clear your cache:
./symfony cc