The SensioGeneratorBundle extends the default Symfony2 command line interface by providing new interactive and intuitive commands for generating code skeletons like bundles, form classes, or CRUD controllers based on a Doctrine 2 schema.
SensioGeneratorBundle
More information in the official documentation.
info at phpclasses dot org