public function generateFieldAnnotations($className, $fieldName)
{
$annotations = [];
$properties = $this->config['types'][$className]['properties'];
if (false === $this->classes[$className]['fields'][$fieldName]['isId'] && ($groups = $properties[$fieldName]['groups'])) {
$annotations[] = sprintf('@Groups({"%s"})', implode('","', $groups));
}
return $annotations;
}