Doctrine\OXM\OXMException::mappingCacheNotConfigured PHP Method

mappingCacheNotConfigured() public static method

public static mappingCacheNotConfigured ( )
    public static function mappingCacheNotConfigured()
    {
        return new self('Class Mapping Cache is not configured.');
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Ensures that this Configuration instance contains settings that are
  * suitable for a production environment.
  *
  * @throws OXMException If a configuration setting has a value that is not
  *                      suitable for a production environment.
  */
 public function ensureProductionSettings()
 {
     if (!$this->getMetadataCacheImpl()) {
         throw OXMException::mappingCacheNotConfigured();
     }
 }