public function getFieldDefinitions()
{
if (empty($this->fieldDefinitionsCache)) {
$definitions = $this->doGetFieldDefinitions();
foreach ($this->getReferencedFields() as $rf) {
if ($rf instanceof Object\ClassDefinition\Data\Localizedfields) {
$definitions = array_merge($definitions, $this->doGetFieldDefinitions($rf->getChilds()));
}
}
$this->fieldDefinitionsCache = $definitions;
}
return $this->fieldDefinitionsCache;
}