Skip to content

Instantly share code, notes, and snippets.

@fordnox
Created August 17, 2011 12:26
Show Gist options
  • Save fordnox/1151435 to your computer and use it in GitHub Desktop.
Save fordnox/1151435 to your computer and use it in GitHub Desktop.
Reset all doctrine 2 entries, regenerate db, dumps sql file, insert fixtures
#!/bin/bash
php doctrine.php orm:generate-entities ~/www/project/data/tmp/
php doctrine.php orm:schema-tool:create --dump-sql > ~/www/project/data/sql/structure.sql
php doctrine.php orm:schema-tool:drop --force
php doctrine.php orm:schema-tool:create
echo 'Inserting database entries'
php fixtures.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment