mappingNotFoundByDbName() public static method

public static mappingNotFoundByDbName ( string $className, string $dbFieldName ) : MappingException
$className string
$dbFieldName string
return MappingException
 /**
  * Gets the field mapping by its DB name.
  * E.g. it returns identifier's mapping when called with _id.
  *
  * @param string $dbFieldName
  *
  * @return array
  * @throws MappingException
  */
 public function getFieldMappingByDbFieldName($dbFieldName)
 {
     foreach ($this->fieldMappings as $mapping) {
         if ($mapping['name'] == $dbFieldName) {
             return $mapping;
         }
     }
     throw MappingException::mappingNotFoundByDbName($this->name, $dbFieldName);
 }