PHP 클래스 Symfony\Bridge\Doctrine\Form\DataTransformer\EntitiesToArrayTransformer

상속: implements Symfony\Component\Form\DataTransformerInterface
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks

공개 메소드들

메소드 설명
__construct ( EntityChoiceList $choiceList )
reverseTransform ( mixed $keys ) : Doctrine\Common\Collections\Collection | object Transforms choice keys into entities
transform ( Doctrine\Common\Collections\Collection | object $collection ) : mixed Transforms entities into choice keys

메소드 상세

__construct() 공개 메소드

public __construct ( EntityChoiceList $choiceList )
$choiceList Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList

reverseTransform() 공개 메소드

Transforms choice keys into entities
public reverseTransform ( mixed $keys ) : Doctrine\Common\Collections\Collection | object
$keys mixed An array of keys, a single key or NULL
리턴 Doctrine\Common\Collections\Collection | object A collection of entities, a single entity or NULL

transform() 공개 메소드

Transforms entities into choice keys
public transform ( Doctrine\Common\Collections\Collection | object $collection ) : mixed
$collection Doctrine\Common\Collections\Collection | object A collection of entities, a single entity or NULL
리턴 mixed An array of choice keys, a single key or NULL