PHP 클래스 Tetranz\Select2EntityBundle\Form\DataTransformer\EntitiesToPropertyTransformer

Class EntitiesToPropertyTransformer
상속: implements Symfony\Component\Form\DataTransformerInterface
파일 보기 프로젝트 열기: tetranz/select2entity-bundle

보호된 프로퍼티들

프로퍼티 타입 설명
$className string
$em Doctrine\Common\Persistence\ObjectManager
$newTaxPrefix string
$primaryKey string
$textProperty string

공개 메소드들

메소드 설명
__construct ( Doctrine\Common\Persistence\ObjectManager $em, string $class, string | null $textProperty = null, string $primaryKey = 'id', string $newTagPrefix = '__' )
reverseTransform ( array $values ) : array Transform array to a collection of entities
transform ( mixed $entities ) : array Transform initial entities to array

메소드 상세

__construct() 공개 메소드

public __construct ( Doctrine\Common\Persistence\ObjectManager $em, string $class, string | null $textProperty = null, string $primaryKey = 'id', string $newTagPrefix = '__' )
$em Doctrine\Common\Persistence\ObjectManager
$class string
$textProperty string | null
$primaryKey string
$newTagPrefix string

reverseTransform() 공개 메소드

Transform array to a collection of entities
public reverseTransform ( array $values ) : array
$values array
리턴 array

transform() 공개 메소드

Transform initial entities to array
public transform ( mixed $entities ) : array
$entities mixed
리턴 array

프로퍼티 상세

$className 보호되어 있는 프로퍼티

protected string $className
리턴 string

$em 보호되어 있는 프로퍼티

protected ObjectManager,Doctrine\Common\Persistence $em
리턴 Doctrine\Common\Persistence\ObjectManager

$newTaxPrefix 보호되어 있는 프로퍼티

protected string $newTaxPrefix
리턴 string

$primaryKey 보호되어 있는 프로퍼티

protected string $primaryKey
리턴 string

$textProperty 보호되어 있는 프로퍼티

protected string $textProperty
리턴 string