Created
November 26, 2015 14:53
-
-
Save AntonioCS/a70a839d18f99f306af5 to your computer and use it in GitHub Desktop.
Create or recreate a doctrine2 entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
bundle=$1 | |
entity=$2 | |
php app/console doctrine:mapping:import --filter=$entity $bundle xml | |
php app/console doctrine:mapping:convert --force --filter=$entity annotation ./src | |
php app/console doctrine:generate:entities $bundle:$entity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment