/** * @param Goal $value * @return mixed|void */ public function transform($value) { if ($value === null) { return ""; } return $value->getId(); }