I've created a new database with the SQL CREATE DATABASE command to host my application tables. I would now generate the database from my Symony 2.1 project using Doctrine. I already have the correct mapping YML-PHP entities but when I try to use the command
php app/vendors doctrine:schema:create
it fails on a query that I run inside my application. What I don't understand is why it seems that it's trying to boot my bundle and so obviously it fails because the queries that I execute don't find the tables. How can I generate the new database?
Base table or view not found: 1146 Table 'mydatabase.mytable_menu' doesn't exist
That command only creates the database for you. You will need to run this command to generate the actual database tables for your entities.
php app/console doctrine:schema:update --force
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With