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