public static function MappingException::pathRequired

Return value

MappingException

2 calls to MappingException::pathRequired()
AnnotationDriver::getAllClassNames in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php
Gets the names of all mapped classes known to this driver.
StaticPHPDriver::getAllClassNames in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/StaticPHPDriver.php
@todo Same code exists in AnnotationDriver, should we re-use it somehow or not worry about it?

File

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

Class

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

Namespace

Doctrine\Common\Persistence\Mapping

Code

public static function pathRequired() {
  return new self("Specifying the paths to your entities is required " . "in the AnnotationDriver to retrieve all class names.");
}