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

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

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
__construct ( Doctrine\Common\Persistence\ObjectManager $em, string $class, string | null $textProperty = null, string $primaryKey = 'id' )
reverseTransform ( string $value ) : mixed | null | object Transform single id value to an entity
transform ( mixed $entity ) : array Transform entity to array

메소드 상세

__construct() 공개 메소드

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

reverseTransform() 공개 메소드

Transform single id value to an entity
public reverseTransform ( string $value ) : mixed | null | object
$value string
리턴 mixed | null | object

transform() 공개 메소드

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

프로퍼티 상세

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

protected string $className
리턴 string

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

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

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

protected string $primaryKey
리턴 string

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

protected string $textProperty
리턴 string