Skip to content

Instantly share code, notes, and snippets.

@afiocre
Last active August 29, 2015 13:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afiocre/9956362 to your computer and use it in GitHub Desktop.
Save afiocre/9956362 to your computer and use it in GitHub Desktop.
** INSTALL / MAJ **
php composer.phar create-project symfony/framework-standard-edition symfony24
php composer.phar self-update
php composer.phar install
php composer.phar update
** VIDER LE CACHE **
php app/console cache:clear
** GENERATION DU BUNDLE **
php app/console generate:bundle --namespace=Headoo/CoreBundle
** GENERATION DES ENTITES POUR TOUT LE PROJET **
php app/console doctrine:generate:entities Headoo
** GENERATION DES ENTITES POUR UN BUNDLE/ENTITE (getter / setter) **
php app/console doctrine:generate:entities HeadooCoreBundle:User
** GENERATION D'UNE ENTITEE **
php app/console doctrine:generate:entity
** GENERATION DU GENERATEUR DE FORMULAIRE D'ENTITE **
php app/console doctrine:generate:form HeadooCoreBundle:User
** GENERATION DU CRUD (CReate / Update / Delete) **
php app/console generate:doctrine:crud
php app/console generate:doctrine:crud --entity=HeadooCoreBundle:User --format=yml --route-prefix=headoo_core_user --with-write --no-interaction --overwrite
** MAJ DE LA BDD **
php app/console doctrine:schema:update --dump-sql
php app/console doctrine:schema:update --force
** VOIR LES ROUTES **
php app/console router:debug
** VOIR LES ROUTES EXPOSEES EN JAVASCRIPT **
php app/console fos:js-routing:debug
** DEPLOYER LES RESSOURCES(IMG, CSS...) DANS LE REP PUBLIC WEB **
php app/console assets:install --symlink
php app/console assetic:dump
** LISTE DES SERVICES **
php app/console container:debug
** GENERATION ENTITEE DEPUIS MYSQL **
php app/console doctrine:mapping:convert xml ./src/AD/AccueilBundle/Resources/config/doctrine/metadata/orm --from-database --force
** TEST UNE REQUETE DQL **
php app/console doctrine:query:dql "SELECT p FROM ADUserBundle:Profile p"
** PROMOUVOIR UN UTILISATEUR (FOSUserBundle) **
php app/console fos:user:promote alexandre ROLE_ADMIN
php app/console fos:user:demote alexandre ROLE_ADMIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment