Sensio\Bundle\GeneratorBundle\Generator\DoctrineCrudGenerator::generate
Generate the CRUD controller.
Signature
Parameters
$bundle
—
Symfony\Component\HttpKernel\Bundle\BundleInterface
- A bundle object
$entity
—
string
- The entity relative class name
$metadata
—
Doctrine\ORM\Mapping\ClassMetadataInfo
- The entity class metadata
$format
—
string
- The configuration format (xml, yaml, annotation)
$routePrefix
—
string
- The route name prefix
$needWriteActions
—
array
- Wether or not to generate write actions
$forceOverwrite
—
Errors/Exceptions
-
RuntimeException