Monthly Archives: September 2012

Symfony2: My Form Type Class generator

Symfony2 has a Doctrine Form Generator. It is work properly but it always needs Entity as a parameter and it only generates one Form Type Class at the same time.I’ve rebuild the generator. My generator supports bulk form generation and … Continue reading

Posted in Doctrine, form generator, Symfony2 | Leave a comment

Symfony2: How to generate new form type class?

Generate test bundle: php app/console generate:bundle –namespace=Acme/TestBundle –format=yml Mapping databse, generate entities: php app/console doctrine:mapping:convert yml ./src/Acme/TestBundle/Resources/config/doctrine/metadata/orm –from-database –force php app/console doctrine:mapping:import AcmeTestBundle annotation php app/console doctrine:generate:entities AcmeTestBundle Generate form type class (I used FosUSerBundle db tables in this example): … Continue reading

Posted in Doctrine, form generator, Symfony2 | Leave a comment

Symfony2.1 and Composer for Windows7 and Wamp Server

Yesterday Symfony 2.1.0 released. The Symfony2.1 use Composer therefore you have to install Composer at first. php -r “eval(‘?>’.file_get_contents(‘http://getcomposer.org/installer’));”   I used the PHP command line installation because I didn’t want to install CURL for Windows7. After the downloading composer.phar … Continue reading

Posted in composer, Git, SonataAdmin, Symfony2.1, Windows | 1 Comment