Skip to content

Commit afaf813

Browse files
committed
Added getFieldMapping method. This method is called by doctrine-extension for ORM and Mongo ODM but for some reason it's missing in PHPCR
1 parent e342261 commit afaf813

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadata.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,10 +1573,7 @@ public function getFieldValue($document, $field)
15731573
*/
15741574
public function getFieldMapping($fieldName)
15751575
{
1576-
if ( ! isset($this->fieldMappings[$fieldName])) {
1577-
throw MappingException::mappingNotFound($this->name, $fieldName);
1578-
}
1579-
return $this->fieldMappings[$fieldName];
1576+
return $this->getField($fieldName);
15801577
}
15811578

15821579
/**

0 commit comments

Comments
 (0)