Saturday, August 31, 2013

Symfony2: Creating Database

Here is a summary how to create a Database in symfony2 using CLI.
There are 3 roughly steps to create a database.

Create a class with annotation, or whatever format that you want.

Create database- which is set in the parameter.yml:
$ php app/console doctrine:database:create
Create table following the annotation: 
$ php app/console doctrine:schema:create 

No comments:

Post a Comment