Skip to content

Instantly share code, notes, and snippets.

@mayuelcuarto
Last active October 4, 2018 05:55
Show Gist options
  • Save mayuelcuarto/f7845acdf32646c509fb1d614fc168ec to your computer and use it in GitHub Desktop.
Save mayuelcuarto/f7845acdf32646c509fb1d614fc168ec to your computer and use it in GitHub Desktop.
Comandos populares de la consola de Symfony
php bin/console cache:clear --env=prod
composer dump-autoload
composer update
php bin/console generate:bundle --namespace=NewBundle --format=yml
composer create-project symfony/framework-standard-edition nombreproyecto
//Import de entidades para symfony 4
php bin/console doctrine:mapping:import App\Entity annotation --path=src/Entity
php bin/console make:entity --regenerate App
//Import clásico para symfony 3
php bin/console doctrine:mapping:convert xml ./src/PlanillaBundle/Resources/config/doctrine/metadata/orm --from-database --force
php bin/console doctrine:mapping:import PlanillaBundle yml
php bin/console doctrine:generate:entities PlanillaBundle
php bin/console generate:doctrine:form PlanillaBundle:Personal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment