PHP Class Sensio\Bundle\GeneratorBundle\Generator\DoctrineFormGenerator

Author: Fabien Potencier ([email protected])
Author: Hugo Hamon ([email protected])
Inheritance: extends Sensio\Bundle\GeneratorBundle\Generator\Generator
ファイルを表示 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\Util\Filesystem $filesystem, $skeletonDir )
generate ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle, string $entity, Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) Generates the entity form class if it does not exist.
getClassName ( )
getClassPath ( )

Private Methods

Method Description
getFieldsFromMetadata ( Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : array Returns an array of fields. Fields can be both column fields and association fields.

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\Util\Filesystem $filesystem, $skeletonDir )
$filesystem Symfony\Component\HttpKernel\Util\Filesystem

generate() public method

Generates the entity form class if it does not exist.
public generate ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle, string $entity, Doctrine\ORM\Mapping\ClassMetadataInfo $metadata )
$bundle Symfony\Component\HttpKernel\Bundle\BundleInterface The bundle in which to create the class
$entity string The entity relative class name
$metadata Doctrine\ORM\Mapping\ClassMetadataInfo The entity metadata class

getClassName() public method

public getClassName ( )

getClassPath() public method

public getClassPath ( )