/** * Gets the mapping of a (regular) field that holds some data but not a * reference to another object. * * @param string $fieldName The field name. * * @return array The field mapping. * * @throws MappingException */ public function getFieldMapping($fieldName) { if (!$this->hasField($fieldName)) { throw MappingException::fieldNotFound($this->name, $fieldName); } return $this->mappings[$fieldName]; }