\Chill\PersonBundle\Form\DataTransformerPersonToIdTransformer

Summary

Methods
Properties
Constants
__construct()
transform()
reverseTransform()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$om
N/A

Properties

$om

$om : \Doctrine\Common\Persistence\ObjectManager

Type

\Doctrine\Common\Persistence\ObjectManager

Methods

__construct()

__construct(\Doctrine\Common\Persistence\ObjectManager  $om) 

Parameters

\Doctrine\Common\Persistence\ObjectManager $om

transform()

transform(\Chill\PersonBundle\Form\DataTransformer\Issue|null  $issue) : string

Transforms an object (issue) to a string (id).

Parameters

\Chill\PersonBundle\Form\DataTransformer\Issue|null $issue

Returns

string

reverseTransform()

reverseTransform(string  $id) : \Chill\PersonBundle\Form\DataTransformer\Issue|null

Transforms a string (id) to an object (issue).

Parameters

string $id

Throws

\Symfony\Component\Form\Exception\TransformationFailedException

if object (issue) is not found.

Returns

\Chill\PersonBundle\Form\DataTransformer\Issue|null