From ee4b46adeab70212942adfad4a078b4eba794808 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 15 Aug 2006 23:49:58 +0000 Subject: [PATCH] Doctrine now throws exception if instances are tried being created --- Doctrine.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Doctrine.php b/Doctrine.php index b5e2c952a..7f92e31ca 100644 --- a/Doctrine.php +++ b/Doctrine.php @@ -236,7 +236,12 @@ final class Doctrine { */ 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 */