/** * {@inheritdoc} */ public function getCustomAttributesMetadata($dataObjectClassName = null) { if ($this->customAttributesMetadataCache !== null) { return $this->customAttributesMetadataCache; } $this->customAttributesMetadataCache = $this->metadata->getCustomAttributesMetadata(); return $this->customAttributesMetadataCache; }
/** * {@inheritdoc} */ public function getCustomAttributesMetadata($dataObjectClassName = null) { $attributes = $this->getCache()->getAttributes($this->entityType, 'custom'); if ($attributes !== false) { return $attributes; } $attributes = $this->metadata->getCustomAttributesMetadata(); $this->getCache()->saveAttributes($this->entityType, $attributes, 'custom'); return $attributes; }