PHP 클래스 Sensio\Bundle\GeneratorBundle\Generator\DoctrineFormGenerator

저자: Fabien Potencier ([email protected])
저자: Hugo Hamon ([email protected])
상속: extends Sensio\Bundle\GeneratorBundle\Generator\Generator
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
__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 ( )

비공개 메소드들

메소드 설명
getFieldsFromMetadata ( Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : array Returns an array of fields. Fields can be both column fields and association fields.

메소드 상세

__construct() 공개 메소드

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

generate() 공개 메소드

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 getClassName ( )

getClassPath() 공개 메소드

public getClassPath ( )