invalidDiscriminatorValue() public static method

Throws an exception that indicates a discriminator value does not exist in a map
public static invalidDiscriminatorValue ( string $value, string $owningClass ) : MappingException
$value string The discriminator value that could not be found
$owningClass string The class that declares the discriminator map
return MappingException
 /**
  * Sets the default discriminator value to be used for this class
  * Used for JOINED and SINGLE_TABLE inheritance mapping strategies if the document has no discriminator value
  *
  * @param string $defaultDiscriminatorValue
  *
  * @throws MappingException
  */
 public function setDefaultDiscriminatorValue($defaultDiscriminatorValue)
 {
     if ($defaultDiscriminatorValue === null) {
         $this->defaultDiscriminatorValue = null;
         return;
     }
     if (!array_key_exists($defaultDiscriminatorValue, $this->discriminatorMap)) {
         throw MappingException::invalidDiscriminatorValue($defaultDiscriminatorValue, $this->name);
     }
     $this->defaultDiscriminatorValue = $defaultDiscriminatorValue;
 }