Internet

Symfony Doctrine – Useful commands

July 9, 2011 by Sarath DR in Internet, Web Development with 1 Comment

Symfony Commands Symfony Doctrine   Useful commands

I always forget the Symfony doctrine commands. This post will be useful for you remember them as well. I can also refer it :). This is not the complete list, but I will add it eventually.

Creates Application:

 $ php symfony generate:app <app_name>

Create Module:

 $ php symfony generate:module <app_name> <module_name>

Creates database for current model

 $ php symfony doctrine:build-db

Creates classes for current model

 $ php symfony doctrine:build-model

Creates schema.yml from current database

 $ php symfony doctrine:build-schema

Creates sql for the current model

 $ php symfony doctrine:build-sql

Inserts sql for the current model

 $ php symfony doctrine:insert-sql

Symfony project deploy dry run

 $ php symfony project:deploy <environment> -t

Symfony deploy project

 $ php symfony project:deploy <environment> -t --go

Generates language files

 $ php symfony i18n:extract --auto-save <app_name> <culture>

Tagged , , ,

Share this to

Related Posts

One Comment

  1. FaysalFeb 11, 2013 at 4:08 amReply

    this is really helpful post for symfony programmer.

Leave a reply

Your email address will not be published. Required fields are marked *

*

About
View Sarath D R's profile on LinkedIn

I am a technology consultant and an entrepreneur focused on the following technologies Java,Spring, Android, Angular, Asterisk, Symfony, Cake , Code-Igniter, Jquery , XAMPP, XHTML, AJAX, MySql, Seo, Web Design, Wordpress, iPhone development.

Today’s Tips
  • Generate Codova.jar file from Phonegap project using ant
  • Google map javascript client  to find the geographic co-ordinates  from  Address or post code
  • Update Android main UI from Webview – Phonegap Plugin
  • Jplayer is not working  with HTC One Android 4.3 version browser
  • Regular expression to validate mobile phone numbers starting with + ( plus ) – php
  • Simple pagination script for PHP
  • Useful adb ( Android Debug Bridge ) commands
  • Change the javascript files url to absolute url – Symfony 1.4
  • Set Http authentication header from Client – PHP / CURL

This site uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.This site also uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.

Close