@@ 1229-1236 (lines=8) @@ | ||
1226 | * |
|
1227 | * @throws MappingException |
|
1228 | */ |
|
1229 | public function getFieldMapping($fieldName) |
|
1230 | { |
|
1231 | if ( ! isset($this->fieldMappings[$fieldName])) { |
|
1232 | throw MappingException::mappingNotFound($this->name, $fieldName); |
|
1233 | } |
|
1234 | ||
1235 | return $this->fieldMappings[$fieldName]; |
|
1236 | } |
|
1237 | ||
1238 | /** |
|
1239 | * Gets the mapping of an association. |
|
@@ 1250-1257 (lines=8) @@ | ||
1247 | * |
|
1248 | * @throws MappingException |
|
1249 | */ |
|
1250 | public function getAssociationMapping($fieldName) |
|
1251 | { |
|
1252 | if ( ! isset($this->associationMappings[$fieldName])) { |
|
1253 | throw MappingException::mappingNotFound($this->name, $fieldName); |
|
1254 | } |
|
1255 | ||
1256 | return $this->associationMappings[$fieldName]; |
|
1257 | } |
|
1258 | ||
1259 | /** |
|
1260 | * Gets all association mappings of the class. |