You are here

public static function MappingException::invalidMappingFile in Plug 7

Parameters

string $entityName:

string $fileName:

Return value

self

1 call to MappingException::invalidMappingFile()
FileDriver::getElement in lib/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php
Gets 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

lib/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php, line 84

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}'.");
}