Commit ee4b46ad authored by zYne's avatar zYne

Doctrine now throws exception if instances are tried being created

parent f7602a3b
...@@ -236,7 +236,12 @@ final class Doctrine { ...@@ -236,7 +236,12 @@ final class Doctrine {
*/ */
const UNIQUE_KEY = 1; const UNIQUE_KEY = 1;
/**
* constructor
*/
public function __construct() {
throw new Doctrine_Exception('Doctrine is static class. No instances can be created.');
}
/** /**
* @var string $path doctrine root directory * @var string $path doctrine root directory
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment