Sensio\Bundle\GeneratorBundle\Generator\DoctrineFormGenerator
Generates a form class based on a Doctrine entity.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class DoctrineFormGenerator
extends Generator
{
- // members
- private $filesystem;
- private $className;
- private $classPath;
- // methods
- public void __construct()
- public void getClassName()
- public void getClassPath()
- public void generate()
- private array getFieldsFromMetadata()
- // Inherited methods from Generator
- public void setSkeletonDirs()
- protected void render()
- protected void renderFile()
Hierarchy
Members
private
- $className
- $classPath
- $filesystem
Methods
private
- getFieldsFromMetadata() — Returns an array of fields. Fields can be both column fields and association fields.
public
- __construct() — Constructor.
- generate() — Generates the entity form class if it does not exist.
- getClassName()
- getClassPath()
Inherited from Sensio\Bundle\GeneratorBundle\Generator\Generator
protected
public
- setSkeletonDirs() — Sets an array of directories to look for templates.