summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2007-03-06 20:08:42 +0000
committerxue <>2007-03-06 20:08:42 +0000
commit2ab695a553abf26e530f5e97c1ea357233d80998 (patch)
tree67ed18fd088ac64d715d1531499aa53ff4249bf6
parent8b60744fc6d3bfe78838bff297f29124b444cbaa (diff)
removed getRecordFinder.
-rw-r--r--UPGRADE13
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php5
2 files changed, 7 insertions, 11 deletions
diff --git a/UPGRADE b/UPGRADE
index aff235b5..9415e94f 100644
--- a/UPGRADE
+++ b/UPGRADE
@@ -4,10 +4,6 @@
!!!IMPORTANT!!!
-After installing the framework, remember to delete everything under
-your PRADO application's assets and runtime directories.
-
-
The following upgrading instructions are cumulative. That is,
if you want to upgrade from version A to version C and there is
version B between A and C, you need to following the instructions
@@ -15,8 +11,13 @@ for both A and B.
Upgrading from v3.1a
---------------------
-- TActiveRecord::getRecordFinder() is deprecated in favour of TActiveRecord::finder().
-
+- The signature of TActiveRecord::finder() is changed. All TActiveRecord-descendant
+ classes that override this method will be affected. Please use the
+ following code to override the method:
+ public static function finder($className=__CLASS__)
+ {
+ return parent::finder($className);
+ }
Upgrading from v3.0.x
---------------------
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index 0eb6d51d..4e06f645 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -160,11 +160,6 @@ abstract class TActiveRecord extends TComponent
return $finders[$className];
}
- public static function getRecordFinder($className)
- {
- throw new TActiveRecordException('Deprecated method, use TActiveRecord::finder()');
- }
-
/**
* Gets the record manager for this object, the default is to call
* TActiveRecordManager::getInstance().