Doctrine now throws exception if instances are tried being created
This commit is contained in:
parent
f7602a3bf5
commit
ee4b46adea
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user