From f6fac5cc2f679a6e93a39ea4127f58e438a583c5 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 1 Nov 2007 04:20:14 +0000 Subject: Refactored ActiveRecord: removed object registry, fixed relationship casing problems. --- .../Data/ActiveRecord/TActiveRecordManager.php | 24 ++-------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'framework/Data/ActiveRecord/TActiveRecordManager.php') diff --git a/framework/Data/ActiveRecord/TActiveRecordManager.php b/framework/Data/ActiveRecord/TActiveRecordManager.php index ab6fe88d..3790773d 100644 --- a/framework/Data/ActiveRecord/TActiveRecordManager.php +++ b/framework/Data/ActiveRecord/TActiveRecordManager.php @@ -14,11 +14,10 @@ Prado::using('System.Data.TDbConnection'); Prado::using('System.Data.ActiveRecord.TActiveRecord'); Prado::using('System.Data.ActiveRecord.Exceptions.TActiveRecordException'); Prado::using('System.Data.ActiveRecord.TActiveRecordGateway'); -Prado::using('System.Data.ActiveRecord.TActiveRecordStateRegistry'); /** - * TActiveRecordManager provides the default DB connection, default object state - * registry, default active record gateway, and table meta data inspector. + * TActiveRecordManager provides the default DB connection, + * default active record gateway, and table meta data inspector. * * The default connection can be set as follows: * @@ -38,7 +37,6 @@ Prado::using('System.Data.ActiveRecord.TActiveRecordStateRegistry'); */ class TActiveRecordManager extends TComponent { - private $_objectRegistry; private $_gateway; private $_meta=array(); private $_connection; @@ -90,24 +88,6 @@ class TActiveRecordManager extends TComponent return $instance; } - /** - * @return TActiveRecordStateRegistry record object registry. - */ - public function getObjectStateRegistry() - { - if(is_null($this->_objectRegistry)) - $this->_objectRegistry = $this->createObjectStateRegistry(); - return $this->_objectRegistry; - } - - /** - * @return TActiveRecordStateRegistry default object registry. - */ - protected function createObjectStateRegistry() - { - return new TActiveRecordStateRegistry(); - } - /** * @return TActiveRecordGateway record gateway. */ -- cgit v1.2.3