Skip to content

Instantly share code, notes, and snippets.

@AntonioCS
Created November 26, 2015 14:53
Show Gist options
  • Save AntonioCS/a70a839d18f99f306af5 to your computer and use it in GitHub Desktop.
Save AntonioCS/a70a839d18f99f306af5 to your computer and use it in GitHub Desktop.
Create or recreate a doctrine2 entity
#!/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