public function reverseTransform($id)
{
if (!$id) {
return null;
}
$entity = $this->om->getRepository($this->className)->find($id);
if (null === $entity) {
throw new TransformationFailedException();
}
return $entity;
}