public static function MappingException::invalidMappingFile

Parameters

string $entityName:

string $fileName:

Return value

MappingException

1 call to MappingException::invalidMappingFile()
FileDriver::getElement in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php
Get the element of schema meta data for the class from the mapping file. This will lazily load the mapping file if it is not loaded yet

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php, line 82

Class

MappingException
A MappingException indicates that something is wrong with the mapping setup.

Namespace

Doctrine\Common\Persistence\Mapping

Code

public static function invalidMappingFile($entityName, $fileName) {
  return new self("Invalid mapping file '{$fileName}' for class '{$entityName}'.");
}