From 58ec853b36a7eb9b94fff2b4e3d12354dd6dfa74 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 29 May 2007 19:20:39 +0000 Subject: [PATCH] --- lib/Doctrine.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/Doctrine.php b/lib/Doctrine.php index 5bcc1249f..bfa6a32d1 100644 --- a/lib/Doctrine.php +++ b/lib/Doctrine.php @@ -366,6 +366,18 @@ final class Doctrine * @var string $path doctrine root directory */ private static $path; + /** + * @var boolean $_debug + */ + private static $_debug = false; + + public static function debug($bool = null) + { + if ($bool !== null) { + self::$_debug = (bool) $bool; + } + return self::$_debug; + } /** * getPath * returns the doctrine root