lib/Doctrine/ORM/Mapping/MappingException.php
public static function missingRequiredOption($field, $expectedOption, $hint = '')
    {
        $message = sprintf("The mapping of field '%s' is invalid: The option '%s' is required.", $field, $expectedOption);

        if (! empty($hint)) {
            $message .= ' (Hint: ' . $hint . ')';
        }

        return new self($message);
    }
public static function missingRequiredOption($field, $expectedOption, $hint = '')
    {
        $message = sprintf("The mapping of field '%s' is invalid: The option '%s' is required.", $field, $expectedOption);

        if (! empty($hint)) {
            $message .= ' (Hint: ' . $hint . ')';
        }

        return new self($message);
    }
public static function missingRequiredOption ( $ field , $ expectedOption , $ hint = '' ) { $ message = sprintf ( "The mapping of field '%s' is invalid: The option '%s' is required." , $ field , $ expectedOption ) ; if ( ! empty ( $ hint ) ) { $ message .= ' (Hint: ' . $ hint . ')' ; } return new self ( $ message ) ; }
Called if a required option was not found but is required

@param string $field          Which field cannot be processed?
@param string $expectedOption Which option is required
@param string $hint           Can optionally be used to supply a tip for common mistakes,
e.g. "Did you think of the plural s?"

@return MappingException
Called if a required option was not found but is required