» [Snippet] Bash script to generate Symfony2 doctrine files
By COil on Friday 25 May 2012 13:07 :: symfony :: Permalink :: Tags :: #bash #snippets #symfony #Symfony2 #unix View comments
Tweet thisHi Symfonians !
Here is a very basic bash script to help generate files for a given entity of your database, useful when you don't want to reverse engineer all the tables: (replace MyBundle and MyNamespace by your own values)
./build_entities.sh Product
PS: Note that the filter allow to generate more that one entity. (ex: "Product", "ProductFoo"...)






